From 339a8b14c5d089c5c152752a5cd5a8b85a90e9c6 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 9 Apr 2023 16:13:14 +0100 Subject: [PATCH] Reset departure board scrolling when resizing window --- src/departures_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/departures_gui.cpp b/src/departures_gui.cpp index 18f37df62c..c0faca37c4 100644 --- a/src/departures_gui.cpp +++ b/src/departures_gui.cpp @@ -541,6 +541,7 @@ public: virtual void OnResize() override { + this->elapsed_ms = 0; this->vscroll->SetCapacityFromWidget(this, WID_DB_LIST); this->GetWidget(WID_DB_LIST)->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); }