[Mono-bugs] [Bug 79370][Blo] Changed - TextBox crashes when width < 0
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 13 10:06:38 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by unserkonig at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79370
--- shadow/79370 2006-09-12 21:40:12.000000000 -0400
+++ shadow/79370.tmp.4579 2006-09-13 10:06:38.000000000 -0400
@@ -102,6 +102,16 @@
explain why the minimum size for avoiding the exception is Width>= 4
I also noted that the CreateParams property appears to be different
than that one in .Net. I don't know if this is the source of the
problem, though.
+
+------- Additional Comments From unserkonig at gmail.com 2006-09-13 10:06 -------
+I observed that .Net doesn't draw the borders when the Width is
+minor than 4 (which appears to be the border size).
+
+So I made a little change in TextBoxBase.CreateParams, to avoid
+taking into account the borders if the Width is minor than the
+current's theme border size.
+
+This fixed the problem for both RichTextBox and TextBox.
More information about the mono-bugs
mailing list