@@ -924,12 +924,14 @@ public:
virtual void OnResize()
{
if (this->viewport != NULL) {
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(IVW_VIEWPORT);
nvp->UpdateViewportCoordinates(this);
ScrollWindowToTile(Industry::Get(this->window_number)->location.GetCenterTile(), this, true); // Re-center viewport.
}
virtual void OnQueryTextFinished(char *str)
if (StrEmpty(str)) return;
@@ -124,12 +124,14 @@ public:
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
this->wp->UpdateVirtCoord();
ScrollWindowToTile(this->GetCenterTile(), this, true); // Re-center viewport.
if (str == NULL) return;
Status change: