Changeset - r12112:f2dfcfd0866d
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2009-06-07 14:34:43
alberth@openttd.org
(svn r16530) -Fix [FS#2964], (r16501): Deduct additional widget length given away to a child from the total (Hirundo).
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -1428,6 +1428,7 @@ void NWidgetHorizontal::AssignSizePositi
 
				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
 
				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);
0 comments (0 inline, 0 general)