Author: jpobst
Date: 2007-08-21 09:53:06 -0400 (Tue, 21 Aug 2007)
New Revision: 84550
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs
Log:
2007-08-21 Jonathan Pobst <[EMAIL PROTECTED]>
* ToolStripItem.cs: When changing the item's text, invalidate before we
resize
ourselves. This ensures the entire old bounds are repainted, in case
our new
size is smaller. [Fixes bug #82518]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-21 13:26:54 UTC (rev 84549)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-21 13:53:06 UTC (rev 84550)
@@ -1,3 +1,9 @@
+2007-08-21 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * ToolStripItem.cs: When changing the item's text, invalidate before we
resize
+ ourselves. This ensures the entire old bounds are repainted, in case
our new
+ size is smaller. [Fixes bug #82518]
+
2007-08-20 Everaldo Canuto <[EMAIL PROTECTED]>
* XplatUIX11.cs: Apply patch from #81588, it makes use of
PointerMotionHintMask
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs
2007-08-21 13:26:54 UTC (rev 84549)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs
2007-08-21 13:53:06 UTC (rev 84550)
@@ -689,9 +689,9 @@
set {
if (this.text != value) {
this.text = value;
+ this.Invalidate ();
this.CalculateAutoSize ();
this.OnTextChanged (EventArgs.Empty);
- this.Invalidate ();
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches