Do not consider previous item heights when setting new item height

This commit is contained in:
DarkPhoenix
2019-05-16 22:13:01 +03:00
parent 0b00e28863
commit 203bed06d6

View File

@@ -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