2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Fri, 11 Aug 2006 20:28:27 +0000 (20:28 -0000)
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Fri, 11 Aug 2006 20:28:27 +0000 (20:28 -0000)
* TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
  for vertical bars. Fixes the mismatches shown by #78513

svn path=/trunk/mcs/; revision=63655

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs

index 8ef2977f3c8f7e7741aac515fd2858c8f23c0afb..fad83a3ebd9e7cc8940027cff2a1f68b938f59b6 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
+         for vertical bars. Fixes the mismatches shown by #78513
+
 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
 
        * FileDialog.cs: If a saved/remembered path doesn't exist
index 8e798b2c5c0bb6dcc6a7852cfab6b5ea2b62c6b8..255bf51fb3be8c2967b97f152889da96aea05c86 100644 (file)
@@ -1548,7 +1548,8 @@ namespace System.Windows.Forms {
                        if (document.Height >= document.ViewPortHeight) {
                                vscroll.Enabled = true;
                                vscroll.Minimum = 0;
-                               vscroll.Maximum = document.Height - ClientSize.Height + 1;
+                               vscroll.LargeChange = document.ViewPortHeight;
+                               vscroll.Maximum = document.Height;
                        } else {
                                vscroll.Maximum = document.ViewPortHeight;
                                vscroll.Enabled = false;