--- a/tuikit/layout.py Fri Feb 01 09:34:15 2013 +0100
+++ b/tuikit/layout.py Sat Feb 02 12:54:27 2013 +0100
@@ -17,9 +17,11 @@
class Layout(Container):
def add(self, widget, **kwargs):
Container.add(self, widget, **kwargs)
- widget.add_handler('sizereq', self.on_child_sizereq)
+ widget.add_handler('sizereq', self._on_child_size_change)
+ widget.add_handler('show', self._on_child_size_change)
+ widget.add_handler('hide', self._on_child_size_change)
- def on_child_sizereq(self, ev):
+ def _on_child_size_change(self, ev):
self.emit('resize')
def _get_children(self):