From 2c4e0b8f7b53cadbdba3187ea62efc632247d4ec Mon Sep 17 00:00:00 2001 From: qsniyg Date: Mon, 4 Sep 2023 22:29:38 +0000 Subject: [PATCH] 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. --- source/UI/js/List/List.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/List/List.js b/source/UI/js/List/List.js index b5421c02..0c0f9bb1 100644 --- a/source/UI/js/List/List.js +++ b/source/UI/js/List/List.js @@ -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) {