diff options
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractOrderedLayout.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractOrderedLayout.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/AbstractOrderedLayout.java b/server/src/com/vaadin/ui/AbstractOrderedLayout.java index c347449ab8..ae8f3198bf 100644 --- a/server/src/com/vaadin/ui/AbstractOrderedLayout.java +++ b/server/src/com/vaadin/ui/AbstractOrderedLayout.java @@ -539,14 +539,13 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements design.attr("margin", ""); } // handle children - Element designElement = design; if (!designContext.shouldWriteChildren(this, def)) { return; } for (Component child : this) { Element childElement = designContext.createElement(child); - designElement.appendChild(childElement); + design.appendChild(childElement); // handle alignment Alignment alignment = getComponentAlignment(child); if (alignment.isMiddle()) { |