aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2017-03-14 15:06:07 +0200
committerGitHub <noreply@github.com>2017-03-14 15:06:07 +0200
commit1e8ad071350bc32d53f035379973aead50b75209 (patch)
tree854eb48d519d6001ae53023b7f058571578aa5d9 /client
parent22b9d37a0f036918ea2182d4291b5e57808588a0 (diff)
downloadvaadin-framework-1e8ad071350bc32d53f035379973aead50b75209.tar.gz
vaadin-framework-1e8ad071350bc32d53f035379973aead50b75209.zip
Fix removing rows from the middle of Escalator (#8826)
* Fix removing rows from the middle of Escalator Fixes #8825
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/widgets/Escalator.java10
1 files changed, 2 insertions, 8 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 7eb99badf7..5cfad18540 100644
--- a/client/src/main/java/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Escalator.java
@@ -3130,14 +3130,8 @@ public class Escalator extends Widget
y += spacerContainer.getSpacerHeight(i);
}
- /*
- * this is how many rows appeared into the viewport from
- * below
- */
- final int rowsToUpdateDataOn = numberOfRows
- - escalatorRowsToRemove;
- final int start = Math.max(0,
- escalatorRowCount - rowsToUpdateDataOn);
+ // #8825 update data starting from the first moved row
+ final int start = dirtyRowsStart;
final int end = escalatorRowCount;
for (int i = start; i < end; i++) {
final TableRowElement tr = visualRowOrder.get(i);