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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user