SetClientSizeCore statt direktzugriff auf ClientSize

This commit is contained in:
2014-04-30 17:50:47 +02:00
parent ba4eb0d2d9
commit 2f233aa226

View File

@@ -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();