summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-12-08 12:25:17 +0000
committerLeif Åstrand <leif@vaadin.com>2011-12-08 12:25:17 +0000
commit203cb91e08cd05ac9e088dea4f282e082f8e5b69 (patch)
tree5072b5d035813edfeaf26de4b5e72cb065f40fc2 /src/com/vaadin
parent3b7884d57a59614fb00bff4d41dc0b80a5442d3a (diff)
downloadvaadin-framework-203cb91e08cd05ac9e088dea4f282e082f8e5b69.tar.gz
vaadin-framework-203cb91e08cd05ac9e088dea4f282e082f8e5b69.zip
Update selection ranges when unselecting rows from the server (#8076)
svn changeset:22316/svn branch:6.7
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index 6ba145c8b8..38872c73a1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -56,7 +56,6 @@ import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.UIObject;
import com.google.gwt.user.client.ui.Widget;
-
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
import com.vaadin.terminal.gwt.client.Container;
@@ -1095,6 +1094,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
}
if (selected != row.isSelected()) {
row.toggleSelection();
+ if (!isSingleSelectMode() && !selected) {
+ // Update selection range in case a row is
+ // unselected from the middle of a range - #8076
+ removeRowFromUnsentSelectionRanges(row);
+ }
}
}
}