svn changeset:23242/svn branch:6.8
}
if (index > maxIndex) {
- setCurrentPageFirstItemIndex(maxIndex);
+ // Note that we pass index, not maxIndex, letting
+ // setCurrentPageFirstItemIndex handle the situation.
+ setCurrentPageFirstItemIndex(index);
return;
}
maxIndex = 0;
}
- // Ensures that the new value is valid
+ // Assume that we want to scroll to the very bottom (so that the bottom
+ // row is completely visible even if (table height) / (row height) is
+ // not an integer.)
if (newIndex > maxIndex) {
- newIndex = maxIndex;
+ newIndex = maxIndex + 1;
}
// Refresh first item id