[Mono-bugs] [Bug 80801][Cos] Changed - Label.PreferredHeight returns incorrect value after calling Application.SetCompatibleTextRenderingDefault

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 12 13:27:24 EST 2007


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 everaldo at simios.org.

http://bugzilla.ximian.com/show_bug.cgi?id=80801

--- shadow/80801	2007-02-11 20:22:06.000000000 -0500
+++ shadow/80801.tmp.10740	2007-02-12 13:27:24.000000000 -0500
@@ -34,6 +34,11 @@
 Additional Information:
 Adding
 #if NET_2_0
             if (use_compatible_text_rendering)
 #endif
 in Label.CalcPreferredHeight before the switch block seems to fix it.
+
+------- Additional Comments From everaldo at simios.org  2007-02-12 13:27 -------
+Theres more problems, when you change BorderStyle returned values is
+wrong, it's because PreferedHeight dont uses CalcPreferredHeight, I
+will write unit tests and fix errors.


More information about the mono-bugs mailing list