PageLayout : bug fix
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Fri, 26 Apr 2013 04:23:12 +0000 (13:23 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 26 Apr 2013 05:43:30 +0000 (14:43 +0900)
change jqmData("scroll") check option in case using data-scroll="none"

Change-Id: Ifdfa1926f629fd1ca0dae510b2cf4414f00a0831

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

index 48d68fc..c75caf3 100644 (file)
@@ -309,8 +309,8 @@ define( [ '../jquery.mobile.tizen.core' ], function ( ) {
 
                        resultMinHeight = layoutInnerHeight - $elHeader.height() - $elFooter.height();
 
-                       $elContent.css( "min-height", resultMinHeight - parseFloat( $elContent.css("padding-top") ) - parseFloat( $elContent.css("padding-bottom") ) + "px" );
-                       if ( $.support.scrollview && $elContent.jqmData("scroll") !== "none" ) {
+                        if ( $.support.scrollview && $elContent.jqmData("scroll") !== "none" ) {
+                               $elContent.css( "min-height", resultMinHeight - parseFloat( $elContent.css("padding-top") ) - parseFloat( $elContent.css("padding-bottom") ) + "px" );
                                $elContent.children( ".ui-scrollview-view" ).css( "min-height", $elContent.css( "min-height" ) );
                        }
                },
@@ -374,7 +374,7 @@ define( [ '../jquery.mobile.tizen.core' ], function ( ) {
                                $elFooter.css( "bottom", 0 );
                        }
 
-                       if ( !$.support.scrollview || ($.support.scrollview && $elContent.jqmData("scroll") !== "none") ) {
+                       if ( !$.support.scrollview || ($.support.scrollview && $elContent.jqmData("scroll") === "none") ) {
                                dpr = window.outerWidth / window.innerWidth;
                                layoutInnerHeight = Math.floor( window.outerHeight / dpr );
                        } else {