Author: jackson
Date: 2007-05-01 01:27:41 -0400 (Tue, 01 May 2007)
New Revision: 76514

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:

        * TextBoxBase.cs: Better preferred height, FixedSingle gets the
        wider area too.
        - Don't set the BoundsSpecified



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-04-30 22:44:46 UTC (rev 76513)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-01 05:27:41 UTC (rev 76514)
@@ -1,3 +1,9 @@
+2007-05-01  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * TextBoxBase.cs: Better preferred height, FixedSingle gets the
+       wider area too.
+       - Don't set the BoundsSpecified
+
 2007-04-30  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * Application.cs: When using the toolstrip shortcut mechanism, allow the

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2007-04-30 22:44:46 UTC (rev 76513)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2007-05-01 05:27:41 UTC (rev 76514)
@@ -465,7 +465,7 @@
                [EditorBrowsable(EditorBrowsableState.Advanced)]
                public int PreferredHeight {
                        get {
-                               return Font.Height + (BorderStyle != 
BorderStyle.Fixed3D ? 0 : 7);
+                               return Font.Height + (BorderStyle == 
BorderStyle.None ? 1 : 8);
                        }
                }
 
@@ -1250,7 +1250,6 @@
                                        if (height != PreferredHeight) {
                                                requested_height = height;
                                                height = PreferredHeight;
-                                               specified |= 
BoundsSpecified.Height;
                                        }
                                }
                        }
@@ -1472,7 +1471,7 @@
                {
                        if (!richtext) {
                                if (!document.multiline) {
-                                       if (actual_border_style == 
BorderStyle.None && PreferredHeight != ClientSize.Height) {
+                                       if (PreferredHeight != 
ClientSize.Height) {
                                                ClientSize = new Size 
(ClientSize.Width, PreferredHeight);
                                        }
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to