diff options
author | Henri Sara <hesara@vaadin.com> | 2013-08-22 15:26:35 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2013-08-22 15:26:35 +0300 |
commit | 39fd5fc7c54987145ca4d9a1b9ffb3ebffb8f45c (patch) | |
tree | eac7f0052c1790c37fdd9cf7aeaf13913890539c /client | |
parent | af995de3b110987114435281047c0c31a164eaa6 (diff) | |
download | vaadin-framework-39fd5fc7c54987145ca4d9a1b9ffb3ebffb8f45c.tar.gz vaadin-framework-39fd5fc7c54987145ca4d9a1b9ffb3ebffb8f45c.zip |
Fix bug for spacing on first widget (#12420)
Change-Id: I58db924446d5c4908f10b29f910cf2aa90ef7a2a
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/orderedlayout/VAbstractOrderedLayout.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/orderedlayout/VAbstractOrderedLayout.java b/client/src/com/vaadin/client/ui/orderedlayout/VAbstractOrderedLayout.java index a2c03eaed1..54c9eb6c68 100644 --- a/client/src/com/vaadin/client/ui/orderedlayout/VAbstractOrderedLayout.java +++ b/client/src/com/vaadin/client/ui/orderedlayout/VAbstractOrderedLayout.java @@ -366,9 +366,9 @@ public class VAbstractOrderedLayout extends FlowPanel { this.spacing = spacing; // first widget does not have spacing on // optimization to avoid looking up widget indices on every iteration - Slot firstSlot = null; + Widget firstSlot = null; if (getWidgetCount() > 0) { - firstSlot = widgetToSlot.get(getWidget(0)); + firstSlot = getWidget(0); } for (Slot slot : widgetToSlot.values()) { slot.setSpacing(spacing && firstSlot != slot); |