diff options
author | Matti Hosio <mhosio@vaadin.com> | 2014-12-16 14:29:08 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-12-16 14:22:48 +0000 |
commit | 1bfb901ad434d295f775c2fe34ac2cad4b2924e4 (patch) | |
tree | aea34e8bd9e9edf7a85e0a0e75bce9d903a642e5 /server/src/com/vaadin/ui/AbsoluteLayout.java | |
parent | 4db93af2d3f57809e3a9c66d72a398379afc2573 (diff) | |
download | vaadin-framework-1bfb901ad434d295f775c2fe34ac2cad4b2924e4.tar.gz vaadin-framework-1bfb901ad434d295f775c2fe34ac2cad4b2924e4.zip |
Do not write child components in sub templates (#7749)
Change-Id: I7e19e86618bbf27ae3a6e585bab000f26dd8f6d5
Diffstat (limited to 'server/src/com/vaadin/ui/AbsoluteLayout.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbsoluteLayout.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbsoluteLayout.java b/server/src/com/vaadin/ui/AbsoluteLayout.java index 01c1aea788..27ddb86dad 100644 --- a/server/src/com/vaadin/ui/AbsoluteLayout.java +++ b/server/src/com/vaadin/ui/AbsoluteLayout.java @@ -718,6 +718,10 @@ public class AbsoluteLayout extends AbstractLayout implements @Override public void writeDesign(Element design, DesignContext designContext) { super.writeDesign(design, designContext); + AbsoluteLayout def = designContext.getDefaultInstance(this); + if (!designContext.shouldWriteChildren(this, def)) { + return; + } // handle children for (Component child : this) { Element childElement = designContext.createElement(child); |