[Mono-bugs] [Bug 455752] New: ListBox returns invalid Item Rectangel (GetItemRectangle) when item is hidden
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 2 15:42:52 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=455752
Summary: ListBox returns invalid Item Rectangel
(GetItemRectangle) when item is hidden
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: mcarrion at novell.com
QAContact: mono-bugs at lists.ximian.com
Blocks: 449890
Found By: ---
Created an attachment (id=257471)
--> (https://bugzilla.novell.com/attachment.cgi?id=257471)
ListBox.MultiColumn patch.
Compile the attached example and click the button: "Print location" without
moving the horizontal scrollbar, you get
(00) X: 0 Y: 0
(01) X: 0 Y: 15
(02) X: 0 Y: 30
(03) X: 0 Y: 45
(04) X: 0 Y: 60
(05) X: 0 Y: 75
(06) X: 0 Y: 90
(07) X: 120 Y: 0
(08) X: 120 Y: 15
(09) X: 120 Y: 30
(10) X: 120 Y: 45
(11) X: 120 Y: 60
(12) X: 120 Y: 75
(13) X: 120 Y: 90
(14) X: 240 Y: 0
(15) X: 240 Y: 15
(16) X: 240 Y: 30
(17) X: 240 Y: 45
(18) X: 240 Y: 60
(19) X: 240 Y: 75
(20) X: 240 Y: 90
(21) X: 360 Y: 0
(22) X: 360 Y: 15
(23) X: 360 Y: 30
(24) X: 360 Y: 45
Now move the horizontal scrollbar and click the button: "Print location", you
get
(00) X: 0 Y: 0
(01) X: 0 Y: -90
(02) X: 0 Y: -75
(03) X: 0 Y: -60
(04) X: 0 Y: -45
(05) X: 0 Y: -30
(06) X: 0 Y: -15
(07) X: 120 Y: 0
(08) X: 120 Y: 15
(09) X: 120 Y: 30
(10) X: 120 Y: 45
(11) X: 120 Y: 60
(12) X: 120 Y: 75
(13) X: 120 Y: 90
(14) X: 240 Y: 0
(15) X: 240 Y: 15
(16) X: 240 Y: 30
(17) X: 240 Y: 45
(18) X: 240 Y: 60
(19) X: 240 Y: 75
(20) X: 240 Y: 90
(21) X: 360 Y: 0
(22) X: 360 Y: 15
(23) X: 360 Y: 30
(24) X: 360 Y: 45
If you repeat the procedure moving the scrollbar and to clicking the button you
will notice that is returning invalid values for the hidden items.
Applying the attached patch fixes the bug.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list