From 203bed06d6abc19e0a77c6b92858eff94d01935a Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 16 May 2019 22:13:01 +0300 Subject: [PATCH] Do not consider previous item heights when setting new item height --- gui/builtinShipBrowser/pfListPane.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/builtinShipBrowser/pfListPane.py b/gui/builtinShipBrowser/pfListPane.py index 3e489aeab..ecb8edb1c 100644 --- a/gui/builtinShipBrowser/pfListPane.py +++ b/gui/builtinShipBrowser/pfListPane.py @@ -149,7 +149,7 @@ class PFListPane(wx.ScrolledWindow): self._wList[i].SetSize((cwidth, iheight)) if doRefresh is True: self._wList[i].Refresh() - self.itemsHeight = max(self.itemsHeight, iheight - 1) + self.itemsHeight = iheight # This is needed as under GTK wx does not emit scroll up/scroll down # events, see issue #1909 for more info