Author: jackson
Date: 2006-11-06 15:32:52 -0500 (Mon, 06 Nov 2006)
New Revision: 67415
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
* TextControl.cs: If a suitable wrapping position isn't found,
just wrap right in the middle of a word.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-06 20:18:32 UTC (rev 67414)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-06 20:32:52 UTC (rev 67415)
@@ -1,3 +1,8 @@
+2006-11-06 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TextControl.cs: If a suitable wrapping position isn't found,
+ just wrap right in the middle of a word.
+
2006-11-06 Alexander Olk <[EMAIL PROTECTED]>
* ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2006-11-06 20:18:32 UTC (rev 67414)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2006-11-06 20:32:52 UTC (rev 67415)
@@ -479,6 +479,13 @@
len = this.text.Length;
retval = true;
wrapped = true;
+ } else if ((widths[pos] + w) >
(doc.viewport_width - this.right_indent)) {
+ // No suitable wrap position
was found so break right in the middle of a word
+ tag.width = tag.width + w;
+ doc.Split(this, tag, pos, true);
+ len = this.text.Length;
+ retval = true;
+ wrapped = true;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches