summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2013-10-04 12:43:07 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2013-10-04 12:43:07 +0000
commit5b0121ecca7d937eca715fa65c17fbffd8889014 (patch)
treeb574e0b91a4484c44edccec7f74bd7c95fe49e17
parent2a807ebdfcd867ea9564933e72daf6e625fecf67 (diff)
downloadvaadin-framework-merged-6.8.tar.gz
vaadin-framework-merged-6.8.zip
Fixed regression where range selection stopped working after the range start was removed #12407merged-6.8
svn changeset:26159/svn branch:6.8
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index 94d54e327b..305d18fd95 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -6200,7 +6200,13 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
.next();
setRowFocus(endRow);
}
+ } else if (!startRow.isSelected()) {
+ // The start row is no longer selected (probably removed)
+ // and so we select from above
+ startRow = (VScrollTableRow) scrollBody.iterator().next();
+ setRowFocus(endRow);
}
+
// Deselect previous items if so desired
if (deselectPrevious) {
deselectAll();