Removed a draw 'optimization' in PFListPane.RefreshList as it caused some problems when the pane was resized (hidden items werent updated even if it was needed as result of resizing)

This commit is contained in:
HomeWorld
2011-02-26 16:06:16 +02:00
parent 1829846455
commit 8bb6b1af10

View File

@@ -148,8 +148,7 @@ class PFListPane(wx.ScrolledWindow):
itemX,itemY = self._wList[i].GetPosition()
self._wList[i].SetSize((cwidth, iheight))
if doRefresh == True:
if itemY >=-iheight and itemY< clientH:
self._wList[i].Refresh()
self._wList[i].Refresh()
if doFocus:
self.SetFocus()