]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't autosize if the height is too small. Interaction with the
authorRobin Dunn <robin@alldunn.com>
Mon, 2 Oct 2006 20:13:15 +0000 (20:13 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 2 Oct 2006 20:13:15 +0000 (20:13 +0000)
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

wxPython/wx/lib/mixins/listctrl.py

index 09972aa4ea0756ddd0802b63ce28f0268a1f9691..cac86a09270e0e5bddc625d9a72282da897a0feb 100644 (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.