diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2017-03-14 15:06:07 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-03-16 16:21:24 +0200 |
commit | a5a95273c92bdc2d69d2a84de36b53085bb5798b (patch) | |
tree | 4c3f785189800b8edc26f115312a71e558ec098b /client | |
parent | e17730697e7f67323ebe492bca3c29868e388c39 (diff) | |
download | vaadin-framework-a5a95273c92bdc2d69d2a84de36b53085bb5798b.tar.gz vaadin-framework-a5a95273c92bdc2d69d2a84de36b53085bb5798b.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.java | 10 |
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); |