summaryrefslogtreecommitdiffstats
path: root/client/src/com
diff options
context:
space:
mode:
authorMarkus Koivisto <markus@vaadin.com>2016-04-05 11:33:28 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-05 15:04:24 +0300
commit4bce5d542c79bc914eb28be3d06678962bc5b744 (patch)
tree7829b108c761d9be02ea2cff83817a70f90300ed /client/src/com
parent8c0733d75692a638a5c5a2bece7eaa8b335176f8 (diff)
downloadvaadin-framework-4bce5d542c79bc914eb28be3d06678962bc5b744.tar.gz
vaadin-framework-4bce5d542c79bc914eb28be3d06678962bc5b744.zip
Fix Escalator BodyContainer logical top row tracking (#17262)
Change-Id: I43041999cba9429e3a08b09f14ac2e8f58774285
Diffstat (limited to 'client/src/com')
-rw-r--r--client/src/com/vaadin/client/widgets/Escalator.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Escalator.java b/client/src/com/vaadin/client/widgets/Escalator.java
index 3585be1d60..29b7eb6d53 100644
--- a/client/src/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/com/vaadin/client/widgets/Escalator.java
@@ -3105,6 +3105,15 @@ public class Escalator extends Widget implements RequiresResize,
logicalTargetIndex);
/*
+ * moveAndUpdateEscalatorRows recalculates the rows, but
+ * logical top row index bookkeeping is handled in this
+ * method.
+ *
+ * TODO: Redesign how to keep it easy to track this.
+ */
+ updateTopRowLogicalIndex(-removedLogicalInside.length());
+
+ /*
* Scrolling the body to the correct location will be
* fixed automatically. Because the amount of rows is
* decreased, the viewport is pushed up as the scrollbar