Reset departure board scrolling when resizing window
This commit is contained in:
		@@ -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);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user