+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
this.bounds.Height = value;
this.explicit_size.Height = value;
- if (this.visible) {
+ if (this.Visible) {
this.CalculateAutoSize ();
this.OnBoundsChanged ();
this.Invalidate ();
this.bounds.Size = value;
this.explicit_size = value;
- if (this.visible) {
- this.CalculateAutoSize ();
- OnBoundsChanged (); }
+ if (this.Visible) {
+ this.CalculateAutoSize ();
+ this.OnBoundsChanged ();
+ }
}
}
this.bounds.Width = value;
this.explicit_size.Width = value;
- if (this.visible) {
+ if (this.Visible) {
this.CalculateAutoSize ();
this.OnBoundsChanged ();
this.Invalidate ();
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 ();
}