mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 20:34:41 +00:00
(svn r16530) -Fix [FS#2964], (r16501): Deduct additional widget length given away to a child from the total (Hirundo).
This commit is contained in:
parent
726ba50868
commit
e3ba9c487f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user