Author: jackson
Date: 2006-11-03 10:12:05 -0500 (Fri, 03 Nov 2006)
New Revision: 67312

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: Don't bail from the scrollbar calcs for non
        multiline textboxes anymore.  This method also determines the
        width/height of a textboxes canvas area.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-03 13:03:44 UTC (rev 67311)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-03 15:12:05 UTC (rev 67312)
@@ -1,3 +1,9 @@
+2006-11-03  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
+       multiline textboxes anymore.  This method also determines the
+       width/height of a textboxes canvas area.
+
 2006-11-03  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-11-03 13:03:44 UTC (rev 67311)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-11-03 15:12:05 UTC (rev 67312)
@@ -1584,12 +1584,7 @@
 
                internal void CalculateScrollBars() {
                        // FIXME - need separate calculations for center and 
right alignment
-                       // No scrollbars for a single line
 
-                       if (!multiline) {
-                               return;
-                       }
-
                        if (document.Width >= document.ViewPortWidth) {
                                hscroll.Enabled = true;
                                hscroll.Minimum = 0;

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

Reply via email to