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:
@@ -249,6 +249,9 @@ class ListCtrlAutoWidthMixin:
|
|||||||
if not self: # avoid a PyDeadObject error
|
if not self: # avoid a PyDeadObject error
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self.GetSize().height < 32:
|
||||||
|
return # avoid an endless update bug when the height is small.
|
||||||
|
|
||||||
numCols = self.GetColumnCount()
|
numCols = self.GetColumnCount()
|
||||||
if numCols == 0: return # Nothing to resize.
|
if numCols == 0: return # Nothing to resize.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user