From: Robin Dunn Date: Mon, 2 Oct 2006 20:13:15 +0000 (+0000) Subject: Don't autosize if the height is too small. Interaction with the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e90db86e7e059fc6c6052228238a44b15410782c 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 --- diff --git a/wxPython/wx/lib/mixins/listctrl.py b/wxPython/wx/lib/mixins/listctrl.py index 09972aa4ea..cac86a0927 100644 --- a/wxPython/wx/lib/mixins/listctrl.py +++ b/wxPython/wx/lib/mixins/listctrl.py @@ -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.