diff options
author | John Alhroos <john.ahlroos@itmill.com> | 2013-10-04 12:43:07 +0000 |
---|---|---|
committer | John Alhroos <john.ahlroos@itmill.com> | 2013-10-04 12:43:07 +0000 |
commit | 5b0121ecca7d937eca715fa65c17fbffd8889014 (patch) | |
tree | b574e0b91a4484c44edccec7f74bd7c95fe49e17 | |
parent | 2a807ebdfcd867ea9564933e72daf6e625fecf67 (diff) | |
download | vaadin-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.java | 6 |
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(); |