aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Form.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-03-20 12:01:28 +0200
committerArtur Signell <artur@vaadin.com>2012-03-21 15:27:52 +0200
commit36b1fe75726c4f278bd48f60be736dadec694ab6 (patch)
tree5a2fcc2f0612221a3d7e0e305c58e43f34fea1ad /src/com/vaadin/ui/Form.java
parenteece939c47a93870d0b536ae6e7e79022f22289d (diff)
downloadvaadin-framework-36b1fe75726c4f278bd48f60be736dadec694ab6.tar.gz
vaadin-framework-36b1fe75726c4f278bd48f60be736dadec694ab6.zip
#8500 Properly repaint parent (hierarchy) when the visibility of a child
changes
Diffstat (limited to 'src/com/vaadin/ui/Form.java')
-rw-r--r--src/com/vaadin/ui/Form.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/Form.java b/src/com/vaadin/ui/Form.java
index c39f043b21..d66fae76ca 100644
--- a/src/com/vaadin/ui/Form.java
+++ b/src/com/vaadin/ui/Form.java
@@ -851,6 +851,9 @@ public class Form extends AbstractField<Object> implements Item.Editor,
newLayout.setParent(this);
layout = newLayout;
+ // Hierarchy has changed so we need to repaint (this could be a
+ // hierarchy repaint only)
+ requestRepaint();
}
/**
@@ -1293,6 +1296,11 @@ public class Form extends AbstractField<Object> implements Item.Editor,
}
formFooter = newFormFooter;
formFooter.setParent(this);
+
+ // Hierarchy has changed so we need to repaint (this could be a
+ // hierarchy repaint only)
+ requestRepaint();
+
}
@Override