just wrap right in the middle of a word.
svn path=/trunk/mcs/; revision=67415
+2006-11-06 Jackson Harper <jackson@ximian.com>
+
+ * TextControl.cs: If a suitable wrapping position isn't found,
+ just wrap right in the middle of a word.
+
2006-11-06 Alexander Olk <alex.olk@googlemail.com>
* ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
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;
}
}