Mercurial > hg > openttd
changeset 18843:2bbb44275f50 draft
(svn r23692) -Fix: use smallest_x of your children only when you let the children update it
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 31 Dec 2011 11:14:03 +0000 |
parents | 165154a3686e |
children | dc8ff68830a9 |
files | src/network/network_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -113,7 +113,6 @@ /* Oh yeah, we ought to be findable! */ w->nested_array[WID_NG_HEADER] = this; - this->smallest_x = this->head->smallest_x + this->tail->smallest_x; // First and last are always shown, rest not this->smallest_y = 0; // Biggest child. this->fill_x = 1; this->fill_y = 0; @@ -131,6 +130,8 @@ child_wid->current_x = child_wid->smallest_x; child_wid->current_y = this->smallest_y; } + + this->smallest_x = this->head->smallest_x + this->tail->smallest_x; // First and last are always shown, rest not } void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl)