Use self.pageLength instead of self.options.pageLength in List::getPageByPosition #359

Merged
j merged 1 commit from qsniyg/oxjs:fix-pagelength into master 2023-10-07 09:14:27 +00:00
Showing only changes of commit 2c4e0b8f7b - Show all commits

View file

@ -624,7 +624,7 @@ Ox.List = function(options, self) {
} }
function getPageByPosition(pos) { function getPageByPosition(pos) {
return Math.floor(pos / self.options.pageLength); return Math.floor(pos / self.pageLength);
} }
function getPageByScrollPosition(pos) { function getPageByScrollPosition(pos) {