From 4620461c86a2ae5a3e9eae5f1c404efb28e1d1cf Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 3 Nov 2011 16:05:24 +0000 Subject: [PATCH] fix page up / page down in Ox.List --- source/Ox.UI/js/Core/Ox.App.js | 1 - source/Ox.UI/js/List/Ox.List.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Core/Ox.App.js b/source/Ox.UI/js/Core/Ox.App.js index ef0e18ed..bb070338 100644 --- a/source/Ox.UI/js/Core/Ox.App.js +++ b/source/Ox.UI/js/Core/Ox.App.js @@ -10,7 +10,6 @@ Ox.App Basic application instance that communicates with a JSON API url JSON API url self Shared private variable load app loaded - @*/ Ox.App = function(options) { diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 2335f1ab..a8d2ea2e 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -1055,11 +1055,11 @@ Ox.List = function(options, self) { } function scrollPageDown() { - that.scrollBy(getHeight()); + that.scrollTop(that.scrollTop() + getHeight()); } function scrollPageUp() { - that.scrollBy(-getHeight()); + that.scrollTop(that.scrollTop() - getHeight()); } function scrollTo(value) {