diff options
author | rubidium <rubidium@openttd.org> | 2009-10-17 14:29:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-17 14:29:10 +0000 |
commit | d1d35b95b6e75a263b9395125af7d22faf02f462 (patch) | |
tree | daed0a809413d71060da91af4c67175989222a2e /src/order_gui.cpp | |
parent | 22ddb90fdbc45087064816ddb0cf0e0a27786db1 (diff) | |
download | openttd-d1d35b95b6e75a263b9395125af7d22faf02f462.tar.xz |
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index fc6d60cef..e985b4f21 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1268,8 +1268,8 @@ public: virtual void OnResize(Point delta) { - /* Update the scroll + matrix */ - this->vscroll.UpdateCapacity(delta.y / (int)this->resize.step_height); + /* Update the scroll bar */ + this->vscroll.SetCapacity(this->GetWidget<NWidgetBase>(ORDER_WIDGET_ORDER_LIST)->current_y / this->resize.step_height); } virtual void OnTimeout() |