]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes deselection when deselecting whole range outside of selection page.
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 5 May 2010 08:07:21 +0000 (08:07 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 5 May 2010 08:07:21 +0000 (08:07 +0000)
svn changeset:13048/svn branch:6.4

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
tests/src/com/vaadin/tests/components/table/KeyControl.java

index de47f5197f62f93efea5ed644b415a7c5594b0d5..faaa1823619d13089c9fb9c53474e1ac01ff505e 100644 (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();
     }
 
     /**
index a0a13e48580456f4f73ff75d34ff004f6ca3814e..b13c53a43fd0214eb8683033771e52995941b993 100644 (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);
     }