diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2015-04-10 16:24:32 +0300 |
---|---|---|
committer | Markus Koivisto <markus@vaadin.com> | 2015-04-15 11:55:52 +0300 |
commit | ebde3be659ee9e536b05aa4a6418214952360d3b (patch) | |
tree | 6d7eb48876313c99669d06c349b43b3e5a920ba9 | |
parent | fa4b26686d2f1184e7874c37ebcbba81a4dd86f4 (diff) | |
download | vaadin-framework-ebde3be659ee9e536b05aa4a6418214952360d3b.tar.gz vaadin-framework-ebde3be659ee9e536b05aa4a6418214952360d3b.zip |
Fix writing of child local ids in AbsoluteLayout (#17421)
Change-Id: I49eb3246061e1b011a0f87e94d2a43eb20c31a34
Conflicts:
server/tests/src/com/vaadin/tests/design/DesignContextLocalIdTest.java
-rw-r--r-- | server/src/com/vaadin/ui/AbsoluteLayout.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/AbsoluteLayout.java b/server/src/com/vaadin/ui/AbsoluteLayout.java index 63bbe70157..303e8efd6b 100644 --- a/server/src/com/vaadin/ui/AbsoluteLayout.java +++ b/server/src/com/vaadin/ui/AbsoluteLayout.java @@ -724,7 +724,7 @@ public class AbsoluteLayout extends AbstractLayout implements for (Component child : this) { Element childElement = designContext.createElement(child); design.appendChild(childElement); - child.writeDesign(childElement, designContext); + // handle position ComponentPosition position = getPosition(child); writePositionAttribute(childElement, ATTR_TOP, position @@ -735,6 +735,7 @@ public class AbsoluteLayout extends AbstractLayout implements .getBottomUnits().getSymbol(), position.getBottomValue()); writePositionAttribute(childElement, ATTR_LEFT, position .getLeftUnits().getSymbol(), position.getLeftValue()); + // handle z-index if (position.getZIndex() >= 0) { childElement |