aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Paul <henrik@vaadin.com>2014-01-15 17:16:44 +0200
committerHenrik Paul <henrik@vaadin.com>2014-01-15 17:16:44 +0200
commit534ea587d5c7bd238d3754da6d1711716a1ed617 (patch)
tree827159277b92f156934faf26ed496652993d9775
parentea2402613b2e23d8d0767bf4cfc93e5400f9082a (diff)
downloadvaadin-framework-534ea587d5c7bd238d3754da6d1711716a1ed617.tar.gz
vaadin-framework-534ea587d5c7bd238d3754da6d1711716a1ed617.zip
Fixes two 'rolling index' bugs when removing columns
Change-Id: I0b278121bf46c3c05c05f73c2aa71f7bfc70cf3a
-rw-r--r--client/src/com/vaadin/client/ui/grid/Escalator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/Escalator.java b/client/src/com/vaadin/client/ui/grid/Escalator.java
index f306166a74..887db8a758 100644
--- a/client/src/com/vaadin/client/ui/grid/Escalator.java
+++ b/client/src/com/vaadin/client/ui/grid/Escalator.java
@@ -2761,10 +2761,9 @@ public class Escalator extends Widget {
}
}
- flyweightRow.removeCells(index, numberOfColumns);
List<Column> removedColumns = new ArrayList<Column>();
for (int i = 0; i < numberOfColumns; i++) {
- removedColumns.add(columns.remove(i));
+ removedColumns.add(columns.remove(index));
}
if (hasSomethingInDom()) {