From 56ca1ea3409b45a4706a1816e7e68b1c2c019fcf Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Thu, 7 Feb 2008 16:57:43 +0000 Subject: [PATCH] Not painting table if only first visible info is updated svn changeset:3741/svn branch:trunk --- src/com/itmill/toolkit/ui/Table.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"); -- 2.39.5