From 5a083f183e5ece4e379a12d7f5b927e54a83d04a Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 20 Dec 2009 20:08:39 +0000 Subject: (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/order_gui.cpp') diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 608ac3d62..8a1068c46 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1289,7 +1289,7 @@ public: virtual void OnResize() { /* Update the scroll bar */ - this->vscroll.SetCapacity(this->GetWidget(ORDER_WIDGET_ORDER_LIST)->current_y / this->resize.step_height); + this->vscroll.SetCapacityFromWidget(this, ORDER_WIDGET_ORDER_LIST); } virtual void OnTimeout() -- cgit v1.2.3-54-g00ecf