Skip to content

Commit

Permalink
automatically request a relayout when visibility changes
Browse files Browse the repository at this point in the history
Layouts will typcially take into account the visibility of a widget.
This adds a static observer to automatically request a relayout when the
visibility of a constraint widget changes.
  • Loading branch information
sccolbert committed Mar 8, 2014
1 parent 8815bad commit 5d24f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enaml/widgets/constraints_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ConstraintsWidget(Widget, ConstrainableMixin):
#--------------------------------------------------------------------------
@observe(
'constraints', 'hug_width', 'hug_height', 'resist_width',
'resist_height', 'limit_width', 'limit_height')
'resist_height', 'limit_width', 'limit_height', 'visible')
def _layout_invalidated(self, change):
""" An observer which will relayout the proxy widget.
Expand Down

0 comments on commit 5d24f8a

Please sign in to comment.