Browse Source

Fixes deselection when deselecting whole range outside of selection page.

svn changeset:13048/svn branch:6.4
tags/6.7.0.beta1
John Alhroos 14 years ago
parent
commit
cb03f6b405

+ 1
- 0
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java View File

@@ -4067,6 +4067,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
}
// still ensure all selects are removed from (not necessary rendered)
selectedRowKeys.clear();
selectedRowRanges.clear();
}

/**

+ 3
- 1
tests/src/com/vaadin/tests/components/table/KeyControl.java View File

@@ -89,10 +89,12 @@ public class KeyControl extends TestBase {
public void valueChange(ValueChangeEvent event) {
Set<String> value = (Set<String>) table3.getValue();
selected3.setValue(value.size() == 0 ? "No selected items"
: value);
: value + ": Total " + value.size() + " items");
}
});

selected3.setWidth("300px");
selected3.setHeight("500px");
layout3.addComponent(selected3);
layout.addComponent(layout3);
}

Loading…
Cancel
Save