aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-12-01 11:34:32 +0200
committerGitHub <noreply@github.com>2020-12-01 11:34:32 +0200
commitd59c3d303be95d38320f94b5d7cde068824d81fd (patch)
treedc2d852dc3409c96a26cea100a591af83a3be890 /client/src
parentcd1dccd153ecfcdcb73e4f59f8f24c49b3f97ed7 (diff)
downloadvaadin-framework-d59c3d303be95d38320f94b5d7cde068824d81fd.tar.gz
vaadin-framework-d59c3d303be95d38320f94b5d7cde068824d81fd.zip
Ensure Composite's contents gets re-measured on resize. (#12154)
Fixes: #12153
Diffstat (limited to 'client/src')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java b/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java
index 3093eaff4a..221a64db6c 100644
--- a/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java
@@ -114,6 +114,8 @@ public class CompositeConnector extends AbstractHasComponentsConnector
} else if (childConnector instanceof DirectionalManagedLayout) {
((DirectionalManagedLayout) childConnector).layoutHorizontally();
((DirectionalManagedLayout) childConnector).layoutVertically();
+ } else {
+ getLayoutManager().setNeedsMeasureRecursively(childConnector);
}
}