From: Matti Tahvonen Date: Thu, 7 Feb 2008 16:57:43 +0000 (+0000) Subject: Not painting table if only first visible info is updated X-Git-Tag: 6.7.0.beta1~5083 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56ca1ea3409b45a4706a1816e7e68b1c2c019fcf;p=vaadin-framework.git Not painting table if only first visible info is updated svn changeset:3741/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java index 00ad905f17..580fadc399 100644 --- a/src/com/itmill/toolkit/ui/Table.java +++ b/src/com/itmill/toolkit/ui/Table.java @@ -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");