int y;
int size;\r
\r
-Console.WriteLine("CalculateIconRect: Width:{0}, Height:{1}", Width, Height);\r
-\r
// Icons are always square. Try to center them in the window\r
if (ClientRectangle.Width < ClientRectangle.Height) {\r
size = ClientRectangle.Width;\r
rect = new Rectangle(x, y, size, size);\r
\r
// Force our window to be square\r
- this.Width = size;\r
- this.Height = size;\r
+ if (Width != size) {\r
+ this.Width = size;\r
+ }\r
+\r
+ if (Height != size) {\r
+ this.Height = size;\r
+ }\r
}\r
}\r
\r