diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2018-11-23 10:48:45 +0200 |
---|---|---|
committer | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2018-11-27 18:05:33 +0200 |
commit | 86e98808be8c58cdda2a463b7debeb59499b49f3 (patch) | |
tree | c1418b9379462e673880f684e937d4953d530245 | |
parent | b49eb1748a25cef4b9d5b2e0fea1ef1a0441e80c (diff) | |
download | vaadin-framework-86e98808be8c58cdda2a463b7debeb59499b49f3.tar.gz vaadin-framework-86e98808be8c58cdda2a463b7debeb59499b49f3.zip |
Fix to use correct spacer index and existing helper method. (#11328)
* Fix to use correct spacer index and existing helper method.
Fixes #11325
-rw-r--r-- | client/src/main/java/com/vaadin/client/widgets/Escalator.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Escalator.java b/client/src/main/java/com/vaadin/client/widgets/Escalator.java index 598d789577..ff76a66f96 100644 --- a/client/src/main/java/com/vaadin/client/widgets/Escalator.java +++ b/client/src/main/java/com/vaadin/client/widgets/Escalator.java @@ -3936,11 +3936,7 @@ public class Escalator extends Widget setRowPosition(tr, 0, logicalIndex * getDefaultRowHeight() + spacerHeights); - com.vaadin.client.widgets.Escalator.SpacerContainer.SpacerImpl spacer = body.spacerContainer - .getSpacer(i); - if (spacer != null && spacer.getHeight() > 0) { - spacerHeights += spacer.getHeight(); - } + spacerHeights += spacerContainer.getSpacerHeight(logicalIndex); } /* |