Author: lpage
Date: 2008-02-03 05:40:39 -0500 (Sun, 03 Feb 2008)
New Revision: 94672
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
2008-02-03 Luke Page <[EMAIL PROTECTED]>
* TextBoxBase.cs - commited patch from James Purcell that
correctly sets the FixedHeight control style when the MultiLine
property is changed on a TextBox control. Fixes bug 358229.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-03 10:24:49 UTC (rev 94671)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-03 10:40:39 UTC (rev 94672)
@@ -1,3 +1,8 @@
+2008-02-03 Luke Page <[EMAIL PROTECTED]>
+ * TextBoxBase.cs - commited patch from James Purcell that
+ correctly sets the FixedHeight control style when the MultiLine
+ property is changed on a TextBox control. Fixes bug 358229.
+
2008-02-02 Luke Page <[EMAIL PROTECTED]>
* Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2008-02-03 10:24:49 UTC (rev 94671)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2008-02-03 10:40:39 UTC (rev 94672)
@@ -453,6 +453,9 @@
if (value != document.multiline) {
document.multiline = value;
+ if (this is TextBox)
+ SetStyle
(ControlStyles.FixedHeight, !value);
+
// SetBoundsCore overrides the Height
for multiline if it needs to,
// so we don't need to worry about it
here.
SetBoundsCore (Left, Top, Width,
ExplicitBounds.Height, BoundsSpecified.None);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches