[Mono-bugs] [Bug 389245] New: PropertyGrid: the check that value was set is too strict
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 12 05:14:23 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=389245
Summary: PropertyGrid: the check that value was set is too strict
Product: Mono: Class Libraries
Version: 1.9.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: contact at i-nz.net
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=214312)
--> (https://bugzilla.novell.com/attachment.cgi?id=214312)
Repro
ListBox is designed to show an exact number of items vertically, thus when one
sets a height of 100 this is rounded down to 95, and on 60 to 56 etc[1].
PropertyGrid does not handle this well! For some reason it checks
(GridEntry.cs) that the value it Set is equal to the value it now Gets, and if
not, calls Set again with the previous value. Eeek! Thus, in this case it is
only possible to set a exactly correct height value, if ListBox rounds the
value down then PG throws a fit and re-applies the previous value.
Ivan, do you know of the reasons for this checking?
[1] Default settings are IntegralHeight=true, a border height of 2, and an
ItemHeight of 13. Thus 95 and 56 fit the equation (2+2+n*13). With other
fonts an ItemHeight of 14 is active.
--
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