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