Bladeren bron

Update selection ranges when unselecting rows from the server (#8076)

svn changeset:22316/svn branch:6.7
tags/7.0.0.alpha1
Leif Åstrand 12 jaren geleden
bovenliggende
commit
203cb91e08

+ 5
- 1
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java Bestand weergeven

@@ -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);
}
}
}
}

tests/testbench/com/vaadin/tests/components/table/ProgrammaticUnselectInRange.html2 → tests/testbench/com/vaadin/tests/components/table/ProgrammaticUnselectInRange.html Bestand weergeven


Laden…
Annuleren
Opslaan