]> source.dussan.org Git - vaadin-framework.git/commitdiff
Not painting table if only first visible info is updated
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 7 Feb 2008 16:57:43 +0000 (16:57 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 7 Feb 2008 16:57:43 +0000 (16:57 +0000)
svn changeset:3741/svn branch:trunk

src/com/itmill/toolkit/ui/Table.java

index 00ad905f17bc0551825c921c8de9b9be02a29cad..580fadc39907fdbaa7ea73721e9d8d7f77d18104 100644 (file)
@@ -1039,9 +1039,6 @@ public class Table extends AbstractSelect implements Action.Container,
                 newIndex = currentPageFirstItemIndex = size() - 1;
             }
         }
-
-        // Assures the visual refresh
-        refreshCurrentPage();
     }
 
     /**
@@ -2165,6 +2162,8 @@ public class Table extends AbstractSelect implements Action.Container,
         pageBuffer = null;
         super.containerItemSetChange(event);
         setCurrentPageFirstItemIndex(getCurrentPageFirstItemIndex());
+        refreshCurrentPage();
+
     }
 
     /**
@@ -2373,6 +2372,8 @@ public class Table extends AbstractSelect implements Action.Container,
             final int pageIndex = getCurrentPageFirstItemIndex();
             ((Container.Sortable) c).sort(propertyId, ascending);
             setCurrentPageFirstItemIndex(pageIndex);
+            refreshCurrentPage();
+
         } else if (c != null) {
             throw new UnsupportedOperationException(
                     "Underlying Data does not allow sorting");