From 4bce5d542c79bc914eb28be3d06678962bc5b744 Mon Sep 17 00:00:00 2001 From: Markus Koivisto Date: Tue, 5 Apr 2016 11:33:28 +0300 Subject: Fix Escalator BodyContainer logical top row tracking (#17262) Change-Id: I43041999cba9429e3a08b09f14ac2e8f58774285 --- client/src/com/vaadin/client/widgets/Escalator.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client') 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 @@ -3104,6 +3104,15 @@ public class Escalator extends Widget implements RequiresResize, moveAndUpdateEscalatorRows(allEscalatorRows, 0, 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 -- cgit v1.2.3