diff options
Diffstat (limited to 'server/src/com/vaadin/ui/Form.java')
-rw-r--r-- | server/src/com/vaadin/ui/Form.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Form.java b/server/src/com/vaadin/ui/Form.java index 9668eaf914..94a9f9b73a 100644 --- a/server/src/com/vaadin/ui/Form.java +++ b/server/src/com/vaadin/ui/Form.java @@ -1378,4 +1378,18 @@ public class Form extends AbstractField<Object> implements Item.Editor, public boolean isComponentVisible(Component childComponent) { return true; }; + + @Override + public void setVisible(boolean visible) { + if (isVisible() == visible) { + return; + } + + super.setVisible(visible); + // If the visibility state is toggled it might affect all children + // aswell, e.g. make container visible should make children visible if + // they were only hidden because the container was hidden. + markAsDirtyRecursive(); + } + } |