Sfoglia il codice sorgente

* TextBoxBase.cs: Set the default max values to MaxValue since
we use the scrollbar for autoscrolling and the default value is
100. If we don't do this the caret won't keep up with typing
after about 18 characters.


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

Jackson Harper 19 anni fa
parent
commit
dc311bb43b

+ 7 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,10 @@
+2006-10-09  Jackson Harper  <[email protected]>
+
+	* TextBoxBase.cs: Set the default max values to MaxValue since
+	we use the scrollbar for autoscrolling and the default value is
+	100.  If we don't do this the caret won't keep up with typing
+	after about 18 characters.
+
 2006-10-07  Andreia Gaita <[email protected]>
 	* Form.cs: The active control should be selected after the 
 	OnLoad so that any child control initialization that affects

+ 2 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs

@@ -121,12 +121,14 @@ namespace System.Windows.Forms {
 			hscroll.control_style &= ~ControlStyles.Selectable;
 			hscroll.Enabled = false;
 			hscroll.Visible = false;
+			hscroll.Maximum = Int32.MaxValue;
 
 			vscroll = new ImplicitVScrollBar();
 			vscroll.ValueChanged += new EventHandler(vscroll_ValueChanged);
 			vscroll.control_style &= ~ControlStyles.Selectable;
 			vscroll.Enabled = false;
 			vscroll.Visible = false;
+			vscroll.Maximum = Int32.MaxValue;
 
 			SuspendLayout ();
 			this.Controls.AddImplicit (hscroll);