summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAutomerge <automerge@vaadin.com>2012-02-13 14:14:37 +0000
committerAutomerge <automerge@vaadin.com>2012-02-13 14:14:37 +0000
commit36f749b4f83086a5306726ad607c9bb3a0fa7526 (patch)
treed6e21b0b330877596c881a7c5b7a1645a56678f7 /src
parentf5834102cf6e75e1d05546001015585868a38a63 (diff)
downloadvaadin-framework-36f749b4f83086a5306726ad607c9bb3a0fa7526.tar.gz
vaadin-framework-36f749b4f83086a5306726ad607c9bb3a0fa7526.zip
[merge from 6.7] #8264 fix long range selection in multi-selectable table, related test
svn changeset:22984/svn branch:6.8
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index ee9c03d421..cae0b65a5a 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -257,9 +257,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
int endOfFirstRange = row.getIndex() - 1;
if (!(endOfFirstRange - startRow.getIndex() < 0)) {
// create range of first part unless its length is < 1
- VScrollTableRow endOfRange = scrollBody
- .getRowByRowIndex(endOfFirstRange);
- ranges.add(new SelectionRange(startRow, endOfRange));
+ ranges.add(new SelectionRange(startRow, endOfFirstRange
+ - startRow.getIndex() + 1));
}
int startOfSecondRange = row.getIndex() + 1;
if (!(getEndIndex() - startOfSecondRange < 0)) {