Don't autosize if the height is too small. Interaction with the

horizontal scrollbar can sometimes cause problems in this case.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-02 20:13:15 +00:00
parent bdec7d7afd
commit e90db86e7e

View File

@@ -248,6 +248,9 @@ class ListCtrlAutoWidthMixin:
if not self: # avoid a PyDeadObject error
return
if self.GetSize().height < 32:
return # avoid an endless update bug when the height is small.
numCols = self.GetColumnCount()
if numCols == 0: return # Nothing to resize.