Author: rolf
Date: 2006-11-22 15:21:45 -0500 (Wed, 22 Nov 2006)
New Revision: 68370

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
Uncommented the last code.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-11-22 20:16:25 UTC (rev 68369)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-11-22 20:21:45 UTC (rev 68370)
@@ -3769,7 +3769,7 @@
                                // size.
                                if (width < 0 || height < 0) {
                                        int cw, ch, ix, iy;
-                                       //XplatUI.GetWindowPos(Handle, this is 
Form, out ix, out iy, out width, out height, out cw, out ch);
+                                       XplatUI.GetWindowPos(Handle, this is 
Form, out ix, out iy, out width, out height, out cw, out ch);
                                }
                        }
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-11-22 20:16:25 UTC (rev 68369)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-11-22 20:21:45 UTC (rev 68370)
@@ -4726,11 +4726,11 @@
                        }
 
                        // Win32 automatically changes negative width/height to 
0.
-                       /*if (width < 0)
+                       if (width < 0)
                                width = 0;
                        if (height < 0)
                                height = 0;
-                               */
+                               
                        // X requires a sanity check for width & height; 
otherwise it dies
                        if (hwnd.zero_sized && width > 0 && height > 0) {
                                if (hwnd.visible) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to