From 5f6a5d724ce41401544883367dffcb7d7f477ca7 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 6 Oct 2006 17:14:29 +0000 Subject: [PATCH] * TextBoxBase.cs: Ignore whether or not the scrollbar is * enabled, since we use this for auto scrolling also. svn path=/trunk/mcs/; revision=66365 --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 5 +++++ mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index d94fee93a7c..85d2657c86d 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2006-10-06 Jackson Harper + + * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled, + since we use this for auto scrolling also. + 2006-10-05 Chris Toshok * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs index 9378b84ab94..07566706368 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs @@ -1727,7 +1727,7 @@ namespace System.Windows.Forms { } // Check if we moved out of view to the right - if ((pos.X >= (document.ViewPortWidth + document.ViewPortX)) && (hscroll.Enabled && (hscroll.Value != hscroll.Maximum))) { + if ((pos.X >= (document.ViewPortWidth + document.ViewPortX)) && (hscroll.Value != hscroll.Maximum)) { if ((pos.X - document.ViewPortWidth + 1) <= hscroll.Maximum) { if (pos.X - document.ViewPortWidth >= 0) { hscroll.Value = pos.X - document.ViewPortWidth + 1; -- 2.11.4.GIT