diff --git a/src/Gui/Gui.cs b/src/Gui/Gui.cs index 670b643..58e5871 100644 --- a/src/Gui/Gui.cs +++ b/src/Gui/Gui.cs @@ -93,7 +93,7 @@ namespace WorldOfPeacecraft int mapWidth = (map.GetLength(0)) * tileSize; int mapHeight = (map.GetLength(1)) * tileSize; this.SuspendLayout(); - this.ClientSize = new Size(mapWidth, mapHeight); + this.SetClientSizeCore(mapWidth, mapHeight); Board.Size = new Size(mapWidth, mapHeight); this.ResumeLayout(); this.PerformLayout();