Force a fake ctrl resize on populate/refresh in marketBrowser.ItemView in order to have the columns resized ( ListCtrlAutoWidthMixin listens on wx.EVT_SIZE and resizes columns when that event is produced - on wxgtk this event isn't generated )
This commit is contained in:
@@ -344,6 +344,10 @@ class ItemView(d.Display, listmix.ListCtrlAutoWidthMixin):
|
||||
self.active = stuff
|
||||
d.Display.populate(self, stuff)
|
||||
|
||||
self.SetSize((-1, -1))
|
||||
|
||||
def refresh(self, stuff):
|
||||
stuff.sort(key=self.itemSort)
|
||||
d.Display.refresh(self, stuff)
|
||||
|
||||
self.SetSize((-1, -1))
|
||||
|
||||
Reference in New Issue
Block a user