Author: jackson
Date: 2007-04-03 17:13:14 -0400 (Tue, 03 Apr 2007)
New Revision: 75362
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
* TextBoxBase.cs: Calculate the scrollbars before calculating
* the
document, because this sets some of the document size properties
that are needed.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 20:01:19 UTC (rev 75361)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 21:13:14 UTC (rev 75362)
@@ -1,5 +1,11 @@
2007-04-03 Jackson Harper <[EMAIL PROTECTED]>
+ * TextBoxBase.cs: Calculate the scrollbars before calculating the
+ document, because this sets some of the document size properties
+ that are needed.
+
+2007-04-03 Jackson Harper <[EMAIL PROTECTED]>
+
* TextBoxBase.cs: We need to calculate maximums even if this is
not a multiline control, because the maxs are used for scrolling.
- Display the caret after doing a page up/down, we need to
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2007-04-03 20:01:19 UTC (rev 75361)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2007-04-03 21:13:14 UTC (rev 75362)
@@ -1628,10 +1628,11 @@
document.DisplayCaret();
}
- internal void CalculateDocument() {
+ internal void CalculateDocument()
+ {
+ CalculateScrollBars ();
+ document.RecalculateDocument (CreateGraphicsInternal
());
- document.RecalculateDocument(CreateGraphicsInternal());
- CalculateScrollBars();
if (document.caret.line != null &&
document.caret.line.Y < document.ViewPortHeight) {
// The window has probably been resized, making
the entire thing visible, so
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches