Author: toshok
Date: 2007-01-02 12:53:09 -0500 (Tue, 02 Jan 2007)
New Revision: 70375

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBar.cs
Log:
2007-01-02  Chris Toshok  <[EMAIL PROTECTED]>

        * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
        setting it to the Control defaults anyway, and it being after the
        Dock set was screwing up layout.
        (set_Dock): don't short circuit out of setting base.Dock.  Also,
        no need to call UpdateStatusBar here, as it'll be re-layed out if
        it needs to be.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-02 17:52:33 UTC (rev 70374)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-02 17:53:09 UTC (rev 70375)
@@ -1,3 +1,12 @@
+2007-01-02  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
+       setting it to the Control defaults anyway, and it being after the
+       Dock set was screwing up layout.
+       (set_Dock): don't short circuit out of setting base.Dock.  Also,
+       no need to call UpdateStatusBar here, as it'll be re-layed out if
+       it needs to be.
+
 2007-01-02  Mike Kestner  <[EMAIL PROTECTED]>
 
        * ListView.cs: patch from [EMAIL PROTECTED] to add padding

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBar.cs     
2007-01-02 17:52:33 UTC (rev 70374)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBar.cs     
2007-01-02 17:53:09 UTC (rev 70375)
@@ -50,8 +50,7 @@
                #region Public Constructors
                public StatusBar ()
                {
-                       base.Dock = DockStyle.Bottom;
-                       Anchor = AnchorStyles.Top | AnchorStyles.Left;
+                       Dock = DockStyle.Bottom;
                        this.TabStop = false;
                        this.SetStyle(ControlStyles.UserPaint | 
ControlStyles.Selectable, false);
                }
@@ -76,12 +75,7 @@
                [DefaultValue(DockStyle.Bottom)]
                public override DockStyle Dock {
                        get { return base.Dock; }
-                       set {
-                               if (value == Dock)
-                                       return;
-                               base.Dock = value;
-                               UpdateStatusBar ();
-                       }
+                       set { base.Dock = value; }
                }
 
                [Localizable(true)]

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

Reply via email to