(svn r21021) -Add [FS#4171]: Center industry gui and waypoint gui after resize (partly by Krille).
This commit is contained in:
@@ -127,6 +127,8 @@ public:
|
||||
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
|
||||
nvp->UpdateViewportCoordinates(this);
|
||||
this->wp->UpdateVirtCoord();
|
||||
|
||||
ScrollWindowToTile(this->GetCenterTile(), this, true); // Re-center viewport.
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user