From 931bea11948035b86bdce788a8655ebe2786a854 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 28 Oct 2012 14:13:38 +0000 Subject: [PATCH] Fixes to classic and sideways list views --- core/modules/macros/list/listviews/classic.js | 8 ++++---- core/modules/macros/list/listviews/sideways.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/modules/macros/list/listviews/classic.js b/core/modules/macros/list/listviews/classic.js index 8f12f3a07..0b66be450 100644 --- a/core/modules/macros/list/listviews/classic.js +++ b/core/modules/macros/list/listviews/classic.js @@ -32,13 +32,13 @@ ClassicListView.prototype.navigateTo = function(historyInfo) { var srcRect = historyInfo.fromPageRect; if(!srcRect) { var scrollPos = $tw.utils.getScrollPosition(); - srcRect.width = window.innerWidth; - srcRect.height = window.innerHeight; srcRect = { left: scrollPos.x, top: scrollPos.y, - right: scrollPos.x + srcRect.width, - bottom: scrollPos.y + srcRect.height + right: scrollPos.x + window.innerWidth, + bottom: scrollPos.y + window.innerHeight, + width: window.innerWidth, + height: window.innerHeight }; }; var dstRect = $tw.utils.getBoundingPageRect(targetElement); diff --git a/core/modules/macros/list/listviews/sideways.js b/core/modules/macros/list/listviews/sideways.js index 9b7b0cfd3..23429e847 100644 --- a/core/modules/macros/list/listviews/sideways.js +++ b/core/modules/macros/list/listviews/sideways.js @@ -25,13 +25,13 @@ SidewaysListView.prototype.navigateTo = function(historyInfo) { var srcRect = historyInfo.fromPageRect; if(!srcRect) { var scrollPos = $tw.utils.getScrollPosition(); - srcRect.width = window.innerWidth; - srcRect.height = window.innerHeight; srcRect = { left: scrollPos.x, top: scrollPos.y, - right: scrollPos.x + srcRect.width, - bottom: scrollPos.y + srcRect.height + right: scrollPos.x + window.innerWidth, + bottom: scrollPos.y + window.innerHeight, + width: window.innerWidth, + height: window.innerHeight }; }; var dstRect = $tw.utils.getBoundingPageRect(targetElement);