2007-03-12 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Mon, 12 Mar 2007 18:45:12 +0000 (18:45 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Mon, 12 Mar 2007 18:45:12 +0000 (18:45 -0000)
* ToolStripItem.cs: Fix some tests I broke by checking Visible
instead of visible.

svn path=/trunk/mcs/; revision=74135

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs

index b4fa5c0bce6544aef7a7a26582ca423956c2291d..fb6e38bfe5daa87bac8392ee0345916ecb0347cd 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripItem.cs: Fix some tests I broke by checking Visible
+       instead of visible.
+
 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * FileDialog.cs: Use text of File name combobox to determine what
index de5b84bfd08d73a74df8a843d1979828ab07c53f..ad253ef3cb4e6d3ae00a1194bd8982f465ff555e 100644 (file)
@@ -392,7 +392,7 @@ namespace System.Windows.Forms
                                this.bounds.Height = value; 
                                this.explicit_size.Height = value;
                                
-                               if (this.visible) {
+                               if (this.Visible) {
                                        this.CalculateAutoSize ();
                                        this.OnBoundsChanged ();
                                        this.Invalidate (); 
@@ -604,9 +604,10 @@ namespace System.Windows.Forms
                                this.bounds.Size = value; 
                                this.explicit_size = value;
                                
-                               if (this.visible) {
-                               this.CalculateAutoSize ();
-                               OnBoundsChanged (); }
+                               if (this.Visible) {
+                                       this.CalculateAutoSize ();
+                                       this.OnBoundsChanged (); 
+                               }
                        }
                }
 
@@ -687,7 +688,7 @@ namespace System.Windows.Forms
                                this.bounds.Width = value; 
                                this.explicit_size.Width = value;
                                
-                               if (this.visible) {
+                               if (this.Visible) {
                                        this.CalculateAutoSize ();
                                        this.OnBoundsChanged ();
                                        this.Invalidate ();
@@ -1158,7 +1159,7 @@ namespace System.Windows.Forms
                        Size final_size = this.CalculatePreferredSize (Size.Empty);
 
                        if (final_size != this.Size) {
-                               this.bounds.Size = final_size;
+                               this.bounds.Width = final_size.Width;
                                if (this.parent != null)
                                        this.parent.PerformLayout ();
                        }