From 2f233aa2269048cd14e5f6d059bb8a395bdd9dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Wed, 30 Apr 2014 17:50:47 +0200 Subject: [PATCH] SetClientSizeCore statt direktzugriff auf ClientSize --- src/Gui/Gui.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();