[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 17:35:10 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-12 13:27:24.000000000 -0500
+++ shadow/80801.tmp.13713 2007-02-12 17:35:10.000000000 -0500
@@ -39,6 +39,17 @@
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.
+
+------- Additional Comments From everaldo at simios.org 2007-02-12 17:35 -------
+Revision r72693 includes:
+
+#if NET_2_0
+ if (!use_compatible_text_rendering)
+ return;
+#endif
+
+I will not close the bug because I detect another problem when you
+change borders, PreferedSize must be recalculated when borders change.
More information about the mono-bugs
mailing list