SetClientSizeCore statt direktzugriff auf ClientSize
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user