[wxPython-users] ListCtrlAutoWidthMixin bug

Robin Dunn robin at alldunn.com
Mon Oct 2 11:50:32 PDT 2006


Josiah Carlson wrote:
> Attached is a script that when run on Windows 2k with wxPython 2.6.3.3,
> will work fine to begin with, but when one resizes the window to have a
> very small height, it causes the AutoWidthMixin to get stuck, resulting
> in the application hanging while it is setting and resetting widths.
> 
> I've fixed this behavior by black-holing the EVT_SIZE event when the
> height of the listctrl is less than 32 pixels, but there is probably a
> better way.

Probably the best way would be to use the height of the header plus the 
height of the horizontal scrollbar, as that seems to be about the size 
where this is triggered, but we don't have an easy way to get the height 
of the header.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list