Minifix: always record the new size even when recenter-on-resize is
temporarily turned off for UI rearrangement reasons.
self.has_pointer = False
def size_allocate_cb(self, widget, allocation):
- if not self.recenter_on_resize:
- self.recenter_on_resize = True
- return
new_size = tuple(allocation)[2:4]
old_size = getattr(self, 'current_size', new_size)
self.current_size = new_size
+ if not self.recenter_on_resize:
+ self.recenter_on_resize = True
+ return
if new_size != old_size:
# recenter
dx = old_size[0] - new_size[0]