Pagelayout : prevent code inserting window.innerHeight when content calculate
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Wed, 17 Apr 2013 06:07:43 +0000 (15:07 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Thu, 18 Apr 2013 10:19:21 +0000 (19:19 +0900)
Change-Id: I55d0b6954f0750fabb077fa6e3b3abd4cc16e3d6

src/js/widgets/jquery.mobile.tizen.pagelayout.js

index 69e8be3..b7bc3d2 100644 (file)
@@ -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;