Explorar el Código

* TextBoxBase.cs: Now that the handles are being created a
* little
later, we need to make sure that the document is recalculated
when
the handle is created.


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

Jackson Harper hace 19 años
padre
commit
b1b79749ed

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

@@ -1,3 +1,9 @@
+2007-03-12  Jackson Harper  <[email protected]>
+
+	* TextBoxBase.cs: Now that the handles are being created a little
+	later, we need to make sure that the document is recalculated when
+	the handle is created.
+
 2007-03-11  Everaldo Canuto  <[email protected]>
 
 	* Theme.cs: GetLinkFont abstract method added.

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

@@ -717,6 +717,7 @@ namespace System.Windows.Forms {
 		#region Protected Instance Methods
 		protected override void CreateHandle() {
 			base.CreateHandle ();
+			CalculateDocument();
 			document.AlignCaret();
 			ScrollToCaret();
 		}