Author: jpobst
Date: 2007-12-13 15:04:14 -0500 (Thu, 13 Dec 2007)
New Revision: 91251

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2007-12-13  Jonathan Pobst  <[EMAIL PROTECTED]>

        * Control.cs: Perform our layout after we resize ourselves
        if we had to adjust our AutoSize.  Missed commit for bug
        #346246.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-13 19:30:14 UTC (rev 91250)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-13 20:04:14 UTC (rev 91251)
@@ -1,5 +1,11 @@
 2007-12-13  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * Control.cs: Perform our layout after we resize ourselves
+       if we had to adjust our AutoSize.  Missed commit for bug
+       #346246.
+
+2007-12-13  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * TableLayoutPanel.cs: Override GetPreferredSizeCore so
        we can provide an implementation of AutoSize.
        [Fixes bug #346246]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-12-13 19:30:14 UTC (rev 91250)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-12-13 20:04:14 UTC (rev 91251)
@@ -5913,7 +5913,6 @@
 
 #if NET_2_0
                        Size s = Size;
-                       LayoutEngine.Layout (this, levent);
                        
                        // If our layout changed our PreferredSize, our parent
                        // needs to re-lay us out.  However, it's not always 
possible to
@@ -5923,9 +5922,9 @@
                                Parent.PerformLayout ();
                                nested_layout = false;
                        }
-#else
-                       LayoutEngine.Layout (this, levent);
 #endif
+                       
+                       LayoutEngine.Layout (this, levent);
                }
 
                [EditorBrowsable(EditorBrowsableState.Advanced)]

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

Reply via email to