diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-02-12 08:32:54 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-02-12 08:32:54 +0000 |
commit | 3870a10532c99e8eaae81ee184eda6e8d4212e71 (patch) | |
tree | 102a9729c7cd168acc0dd5d2db0e22ea08a334a4 | |
parent | 823ecdab28d28bc3fbe4c3522f5b7418eb8237cd (diff) | |
download | vaadin-framework-3870a10532c99e8eaae81ee184eda6e8d4212e71.tar.gz vaadin-framework-3870a10532c99e8eaae81ee184eda6e8d4212e71.zip |
fixed first visible to me more sane
svn changeset:3773/svn branch:trunk
-rw-r--r-- | src/com/itmill/toolkit/ui/Table.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java index 24fb59904d..63565f01b0 100644 --- a/src/com/itmill/toolkit/ui/Table.java +++ b/src/com/itmill/toolkit/ui/Table.java @@ -977,12 +977,12 @@ public class Table extends AbstractSelect implements Action.Container, public void setCurrentPageFirstItemIndex(int newIndex) { // Ensures that the new value is valid + if (newIndex >= size()) { + newIndex = size() - pageLength; + } if (newIndex < 0) { newIndex = 0; } - if (newIndex >= size()) { - newIndex = size() - 1; - } // Refresh first item id if (items instanceof Container.Indexed) { |