Reset departure board scrolling when resizing window

pull/507/head
Jonathan G Rennison 1 year ago
parent bb6d45e4dc
commit 339a8b14c5

@ -541,6 +541,7 @@ public:
virtual void OnResize() override
{
this->elapsed_ms = 0;
this->vscroll->SetCapacityFromWidget(this, WID_DB_LIST);
this->GetWidget<NWidgetCore>(WID_DB_LIST)->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START);
}

Loading…
Cancel
Save