Author: pbartok
Date: 2006-06-27 13:00:43 -0400 (Tue, 27 Jun 2006)
New Revision: 62083

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
2006-06-27  Peter Dennis Bartok  <[EMAIL PROTECTED]>

        * TextBoxBase.cs: Applied Eno's patch from #78660



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-06-27 16:54:10 UTC (rev 62082)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-06-27 17:00:43 UTC (rev 62083)
@@ -1,3 +1,7 @@
+2006-06-27  Peter Dennis Bartok  <[EMAIL PROTECTED]>
+
+       * TextBoxBase.cs: Applied Eno's patch from #78660
+
 2006-06-27  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
 
        * Form.cs (ScaleCore): We don't want to scale our form if it's

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-06-27 16:54:10 UTC (rev 62082)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-06-27 17:00:43 UTC (rev 62083)
@@ -1529,14 +1529,22 @@
                                if ((scrollbars & 
RichTextBoxScrollBars.Horizontal) != 0) {
                                        if (((scrollbars & 
RichTextBoxScrollBars.ForcedHorizontal) != 0) || hscroll.Enabled) {
                                                hscroll.Visible = true;
+                                       } else {
+                                               hscroll.Visible = false;
                                        }
+                               } else {
+                                       hscroll.Visible = false;
                                }
                        }
 
                        if ((scrollbars & RichTextBoxScrollBars.Vertical) != 0) 
{
                                if (((scrollbars & 
RichTextBoxScrollBars.ForcedVertical) != 0) || vscroll.Enabled) {
                                        vscroll.Visible = true;
+                               } else {
+                                       vscroll.Visible = false;
                                }
+                       } else {
+                               vscroll.Visible = false;
                        }
 
                        if (hscroll.Visible) {

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

Reply via email to