lets text get closer to the right (far) edge.
svn path=/trunk/mcs/; revision=68759
* TextBoxBase.cs: You can still change the selected text on a read
only textbox.
+ * TextControl.cs: Lower magic number for wrap calculations. This
+ lets text get closer to the right (far) edge.
2006-11-30 Jonathan Pobst <monkey@jpobst.com>
}
if (doc.wrap) {
- if ((wrap_pos > 0) && (wrap_pos != len) && (widths[pos] + w) + 27 > (doc.viewport_width - this.right_indent)) {
+ if ((wrap_pos > 0) && (wrap_pos != len) && (widths[pos] + w) + 5 > (doc.viewport_width - this.right_indent)) {
pos = wrap_pos;
tag.width = wrap_width;
doc.Split(this, tag, pos, this.soft_break);