summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-19 01:50:07 +0000
committersmatz <smatz@openttd.org>2008-05-19 01:50:07 +0000
commit290cedade22ae5e5f5fb52dfedea6ec5101ba9d2 (patch)
treed1540487792c1253ba51ca50f9ddb61c652fc93a
parentfa72187bbf5dbb990305abf9b068dafb9353f11b (diff)
downloadopenttd-290cedade22ae5e5f5fb52dfedea6ec5101ba9d2.tar.xz
(svn r13176) -Fix (r13153): town window was glitchy while opening
-rw-r--r--src/town_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 218276d33..ee2a80601 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -305,6 +305,8 @@ struct TownViewWindow : Window {
this->widget[TVW_CHANGENAME].bottom = this->widget[TVW_EXPAND].bottom;
this->widget[TVW_CHANGENAME].right = this->widget[TVW_STICKY].right;
}
+
+ this->FindWindowPlacementAndResize(desc);
}
virtual void OnPaint()