From e3ba9c487f98acf50922cda8ae7e7c1e118628e2 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 7 Jun 2009 14:34:43 +0000 Subject: (svn r16530) -Fix [FS#2964], (r16501): Deduct additional widget length given away to a child from the total (Hirundo). --- src/widget.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/widget.cpp b/src/widget.cpp index 0f2004a6c..516f6b04c 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1428,6 +1428,7 @@ void NWidgetHorizontal::AssignSizePosition(SizingType sizing, uint x, uint y, ui num_changing_childs--; if (hor_step > 1) increment -= increment % hor_step; child_wid->current_x = child_wid->smallest_x + increment; + additional_length -= increment; continue; } next_biggest_stepsize = max(next_biggest_stepsize, hor_step); @@ -1560,6 +1561,7 @@ void NWidgetVertical::AssignSizePosition(SizingType sizing, uint x, uint y, uint num_changing_childs--; if (vert_step > 1) increment -= increment % vert_step; child_wid->current_y = child_wid->smallest_y + increment; + additional_length -= increment; continue; } next_biggest_stepsize = max(next_biggest_stepsize, vert_step); -- cgit v1.2.3-70-g09d2