* TextControl.cs: Lower magic number for wrap calculations. This
authorJackson Harper <jackson@novell.com>
Thu, 30 Nov 2006 16:56:41 +0000 (16:56 -0000)
committerJackson Harper <jackson@novell.com>
Thu, 30 Nov 2006 16:56:41 +0000 (16:56 -0000)
        lets text get closer to the right (far) edge.

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

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

index 85248041d50142b4d95ecf5cc8aeb3127784a18a..f6d642e10a009ca6a55d47d2afcf8e10d26e4023 100644 (file)
@@ -2,6 +2,8 @@
 
        * 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>
 
index f815d5fda4886dc14d084241221a9183110167bc..beea307b9b21d553283e8784dc7745f5a19139a5 100644 (file)
@@ -472,7 +472,7 @@ namespace System.Windows.Forms {
                                }
 
                                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);