Author: pbartok
Date: 2006-05-19 12:47:27 -0400 (Fri, 19 May 2006)
New Revision: 60871
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2006-05-19 Peter Dennis Bartok <[EMAIL PROTECTED]>
* XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
instead of sticking to the first ever calculated value
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-19 16:10:16 UTC (rev 60870)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-19 16:47:27 UTC (rev 60871)
@@ -1,3 +1,8 @@
+2006-05-19 Peter Dennis Bartok <[EMAIL PROTECTED]>
+
+ * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
+ instead of sticking to the first ever calculated value
+
2006-05-19 Mike Kestner <[EMAIL PROTECTED]>
* ComboBox.cs: fix mouse motion selection to use MousePosition and
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-05-19 16:10:16 UTC (rev 60870)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-05-19 16:47:27 UTC (rev 60871)
@@ -3488,6 +3488,7 @@
if (hwnd.ClientRect.IsEmpty) {
rect =
Hwnd.GetClientRectangle(hwnd.border_style, hwnd.menu, hwnd.title_style,
hwnd.caption_height, hwnd.tool_caption_height, width, height);
+ hwnd.ClientRect = rect;
} else {
rect = hwnd.ClientRect;
}
@@ -4273,11 +4274,8 @@
UnmapWindow(hwnd, WindowType.Whole);
}
- if (hwnd.ClientRect.IsEmpty) {
- client_rect =
Hwnd.GetClientRectangle(hwnd.border_style, hwnd.menu, hwnd.title_style,
hwnd.caption_height, hwnd.tool_caption_height, width, height);
- } else {
- client_rect = hwnd.ClientRect;
- }
+ PerformNCCalc(hwnd);
+ client_rect = hwnd.ClientRect;
// Save a server roundtrip (and prevent a feedback loop)
if ((hwnd.x == x) && (hwnd.y == y) &&
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches