Image gallery handling - use EXPOSE to draw initial window, make sure
images don't go over the edge svn: r1594
This commit is contained in:
parent
1807596d31
commit
a046f09f80
@ -1487,7 +1487,6 @@ class EditPerson:
|
||||
self.redraw_event_list()
|
||||
elif page == 6 and self.not_loaded:
|
||||
self.not_loaded = 0
|
||||
self.gallery.load_images()
|
||||
elif page == 8 and self.lds_not_loaded:
|
||||
self.lds_not_loaded = 0
|
||||
self.draw_lds()
|
||||
|
@ -387,11 +387,11 @@ class Gallery(ImageSelect):
|
||||
|
||||
self.canvas_list[oid] = (grp,item,text,self.cx,self.cy)
|
||||
|
||||
self.cx += _PAD + _IMAGEX
|
||||
|
||||
if self.cx + _PAD + _IMAGEX > self.x:
|
||||
self.cx = _PAD
|
||||
self.cy = self.cy + _PAD + _IMAGEY
|
||||
else:
|
||||
self.cx = self.cx + _PAD + _IMAGEX
|
||||
self.cy += _PAD + _IMAGEY
|
||||
|
||||
def load_images(self):
|
||||
"""clears the currentImages list to free up any cached
|
||||
|
Loading…
Reference in New Issue
Block a user