[Mono-bugs] [Bug 389245] PropertyGrid: the check that value was set is too strict
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 12 11:45:05 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=389245
User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=389245#c2
--- Comment #2 from Andy Hume <andyhume32 at yahoo.co.uk> 2008-05-12 09:45:04 MST ---
Created an attachment (id=214454)
--> (https://bugzilla.novell.com/attachment.cgi?id=214454)
Screenshot of simple repro app on MSFT, rounding Height down
On the reproduction:
MSFT does the rounding too. The simplest case is to run the little repro app
from bug 389250, I'll attach a screenshot from MSFT (where I set 65 and got 56
(=4+4*13)). The same is seen when running under Mono. On Linux, due I presume
to Font differences, the rounded-down size is 60 (=4+4*14).
However, I should have noted that the rounding only occurs when the control has
been painted[1] or its handled created or something like that...
So, try the attached app again, but first select the ListBox tab and resize the
window to show the control. It /will/ occur in that situation. Now setting
the size to 65 will result in a height of 60 (Linux) or 56 (Windows).
----
[1] In fact the rounding can be see immediately on the first paint: select the
ListBox property grid, see Size={120,96}, now select the tab page containing
the ListBox itself to display the ListBox, and now click back in the Size field
and see that it's be automagically changed to {120,88}, or on Windows to
{120,95} etc.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list