[Mono-bugs] [Bug 400390] ListView VirtualMode=GridLines=true junks

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 24 22:26:49 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=400390

User johnm at hlaustralia.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=400390#c9


John Mortlock <johnm at hlaustralia.com.au> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #9 from John Mortlock <johnm at hlaustralia.com.au>  2008-09-24 20:26:47 MDT ---
One small problem when there are no items then a divide by zero occurs.
This happens when drawing the horizontal grid lines. (ThemeWin32Classic.cs)

I added the following code to work around it, i have no idea what the default
height should be so guessed at 16.

int item_height = control.ItemSize.Height != 0 ? control.ItemSize.Height : 16;


-- 
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