* TextBoxBase.cs: Now that the handles are being created a
authorJackson Harper <jackson@novell.com>
Mon, 12 Mar 2007 05:31:26 +0000 (05:31 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 12 Mar 2007 05:31:26 +0000 (05:31 -0000)
        * little
        later, we need to make sure that the document is recalculated
when
        the handle is created.

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

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

index ca7ebdbd553417395863b76b684c254e1bcd01b2..4a502c63a80ee35cff7e219e47f7b5d89f3fb609 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-12  Jackson Harper  <jackson@ximian.com>
+
+       * 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  <everaldo@simios.org>
 
        * Theme.cs: GetLinkFont abstract method added.
index 05a8dae2595bc0cb4987c443ab1c47b3bcef2660..0daf5c82111646a923d27089cc8db3803b814601 100644 (file)
@@ -717,6 +717,7 @@ namespace System.Windows.Forms {
                #region Protected Instance Methods
                protected override void CreateHandle() {
                        base.CreateHandle ();
+                       CalculateDocument();
                        document.AlignCaret();
                        ScrollToCaret();
                }