(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
This commit is contained in:
@@ -1289,7 +1289,7 @@ public:
|
||||
virtual void OnResize()
|
||||
{
|
||||
/* Update the scroll bar */
|
||||
this->vscroll.SetCapacity(this->GetWidget<NWidgetBase>(ORDER_WIDGET_ORDER_LIST)->current_y / this->resize.step_height);
|
||||
this->vscroll.SetCapacityFromWidget(this, ORDER_WIDGET_ORDER_LIST);
|
||||
}
|
||||
|
||||
virtual void OnTimeout()
|
||||
|
Reference in New Issue
Block a user