summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp4
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()