]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Fixed #8077: removed a buggy optimization that prevented the client...
authorAutomerge <automerge@vaadin.com>
Wed, 29 Feb 2012 14:14:27 +0000 (14:14 +0000)
committerAutomerge <automerge@vaadin.com>
Wed, 29 Feb 2012 14:14:27 +0000 (14:14 +0000)
svn changeset:23133/svn branch:6.8

src/com/vaadin/ui/Table.java

index 199a6805f6ac916d5c64e1ec612d266de5a738f1..0f6c1f3be894398fbe7e61ce5556ae9b21aae0e6 100644 (file)
@@ -3839,22 +3839,8 @@ public class Table extends AbstractSelect implements Action.Container,
     @Override
     public void containerItemSetChange(Container.ItemSetChangeEvent event) {
         super.containerItemSetChange(event);
-        if (event instanceof IndexedContainer.ItemSetChangeEvent) {
-            IndexedContainer.ItemSetChangeEvent evt = (IndexedContainer.ItemSetChangeEvent) event;
-            // if the event is not a global one and the added item is outside
-            // the visible/buffered area, no need to do anything
-            if (evt.getAddedItemIndex() != -1
-                    && (firstToBeRenderedInClient >= 0)
-                    && (lastToBeRenderedInClient >= 0)
-                    && (firstToBeRenderedInClient > evt.getAddedItemIndex() || lastToBeRenderedInClient < evt
-                            .getAddedItemIndex())) {
-                return;
-            }
-        }
-        // ensure that page still has first item in page, ignore buffer refresh
-        // (forced in this method)
-        setCurrentPageFirstItemIndex(getCurrentPageFirstItemIndex(), false);
 
+        setCurrentPageFirstItemIndex(getCurrentPageFirstItemIndex(), false);
         refreshRowCache();
     }