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

self.options.pageLength is a hint, the actual pageLength can differ. For example when orientation == both, self.options.pageLength is disregarded entirely.
This commit is contained in:
qsniyg 2023-09-04 22:29:38 +00:00
parent 2a147446c2
commit 2c4e0b8f7b

View file

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