summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-11-12 16:05:55 +0000
committerArtur Signell <artur.signell@itmill.com>2009-11-12 16:05:55 +0000
commit32b0d04ed1cedd80fcafb9a1a9196c5a36a9708c (patch)
tree228770ac4b59bea2a407522daf063314e5fa4f82 /src
parent512cb35bf3712d5fa99a4d32942022c821f45afa (diff)
downloadvaadin-framework-32b0d04ed1cedd80fcafb9a1a9196c5a36a9708c.tar.gz
vaadin-framework-32b0d04ed1cedd80fcafb9a1a9196c5a36a9708c.zip
Merged test case and fix for #3705 - "CustomComponent does not inform child about size change" from 6.1
svn changeset:9760/svn branch:6.2
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java b/src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java
index d0c140dac0..dc3cd6b2e3 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VCustomComponent.java
@@ -68,6 +68,12 @@ public class VCustomComponent extends SimplePanel implements Container {
renderSpace.setWidth(getElement().getOffsetWidth());
renderSpace.setHeight(getElement().getOffsetHeight());
+ /*
+ * Needed to update client size if the size of this component has
+ * changed and the child uses relative size(s).
+ */
+ client.runDescendentsLayout(this);
+
rendering = false;
}