Author: jackson
Date: 2006-12-20 12:28:26 -0500 (Wed, 20 Dec 2006)
New Revision: 69823
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
- PreferredHeight is a little different than i thought.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-12-20 17:24:30 UTC (rev 69822)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-12-20 17:28:26 UTC (rev 69823)
@@ -460,7 +460,7 @@
[EditorBrowsable(EditorBrowsableState.Advanced)]
public int PreferredHeight {
get {
- return (BorderStyle == BorderStyle.None ? 0 :
Font.Height + 7);
+ return Font.Height + BorderStyle ==
BorderStyle.None ? 0 : 7;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches