Reset departure board scrolling when resizing window

This commit is contained in:
Jonathan G Rennison
2023-04-09 16:13:14 +01:00
parent bb6d45e4dc
commit 339a8b14c5

View File

@@ -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);
}