summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-31 11:14:03 +0000
committerrubidium <rubidium@openttd.org>2011-12-31 11:14:03 +0000
commit1a6d352b927ed102253054e7cd0a1baaa8e68127 (patch)
treebfa7af1c9866724d9654ba8723764d036a9e067d
parentf27b7e2a785747441971112ffb5415c655b11da0 (diff)
downloadopenttd-1a6d352b927ed102253054e7cd0a1baaa8e68127.tar.xz
(svn r23692) -Fix: use smallest_x of your children only when you let the children update it
-rw-r--r--src/network/network_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 545d5a52d..649f809ae 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -113,7 +113,6 @@ public:
/* 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 @@ public:
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)