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:
parent
2a147446c2
commit
2c4e0b8f7b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue