From 747a49006ca2daf655daf2399b067c2ed658aad1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 2 Oct 2021 17:45:43 -0600 Subject: [PATCH] canvastable: finish comment --- libs/canvas/table.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/canvas/table.cc b/libs/canvas/table.cc index 0bdf13f1ec..b90af1c6f1 100644 --- a/libs/canvas/table.cc +++ b/libs/canvas/table.cc @@ -557,8 +557,12 @@ Table::compute (Rect const & within) probably too small/too large. So... where is the start of the next - column. + column. Well, it's at the greater of + (a) right edge of this cell's + natural box OR (b) wherever the nth + elastic column would be. */ + /* rect already includes padding.left */ hpos = std::max (rect.x1 + ci->second.padding.right, padding.left + (elastic_col_width * (c + 1))); }