From a30816caac7dab58ea6f87b06a8646efb0000178 Mon Sep 17 00:00:00 2001 From: Jinhyuk Jun Date: Wed, 17 Apr 2013 15:07:43 +0900 Subject: [PATCH] Pagelayout : prevent code inserting window.innerHeight when content calculate Change-Id: I55d0b6954f0750fabb077fa6e3b3abd4cc16e3d6 --- src/js/widgets/jquery.mobile.tizen.pagelayout.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/widgets/jquery.mobile.tizen.pagelayout.js b/src/js/widgets/jquery.mobile.tizen.pagelayout.js index 69e8be3..b7bc3d2 100644 --- a/src/js/widgets/jquery.mobile.tizen.pagelayout.js +++ b/src/js/widgets/jquery.mobile.tizen.pagelayout.js @@ -303,7 +303,9 @@ define( [ '../jquery.mobile.tizen.core' ], function ( ) { if ( !$.support.scrollview ) { dpr = window.outerWidth / window.innerWidth; layoutInnerHeight = Math.floor( window.outerHeight / dpr ); - } + } else { + layoutInnerHeight = window.innerHeight; + } resultMinHeight = layoutInnerHeight - $elHeader.height() - $elFooter.height(); @@ -375,6 +377,8 @@ define( [ '../jquery.mobile.tizen.core' ], function ( ) { if ( !$.support.scrollview ) { dpr = window.outerWidth / window.innerWidth; layoutInnerHeight = Math.floor( window.outerHeight / dpr ); + } else { + layoutInnerHeight = window.innerHeight; } resultContentHeight = layoutInnerHeight - resultFooterHeight - resultHeaderHeight; -- 2.7.4