1 From 79081b53a6708d4391edac5ed6b3981c7ae3616c Mon Sep 17 00:00:00 2001
2 From: Jinhyuk Jun <jinhyuk.jun@samsung.com>
3 Date: Fri, 29 Mar 2013 16:20:48 +0900
4 Subject: [PATCH] JQM remove useless page min-height calculate
6 Change-Id: I6598b5fafea8463c6714f12a62ad9575d019d4c9
8 .../js/jquery.mobile.navigation.js | 15 ---------------
9 1 file changed, 15 deletions(-)
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.navigation.js b/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.navigation.js
12 index 0a727b4..0be7861 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.navigation.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/jquery.mobile.navigation.js
15 @@ -579,17 +579,6 @@ define( [
19 - //simply set the active page's minimum height to screen height, depending on orientation
20 - function resetActivePageHeight() {
21 - var aPage = $( "." + $.mobile.activePageClass ),
22 - aPagePadT = parseFloat( aPage.css( "padding-top" ) ),
23 - aPagePadB = parseFloat( aPage.css( "padding-bottom" ) ),
24 - aPageBorderT = parseFloat( aPage.css( "border-top-width" ) ),
25 - aPageBorderB = parseFloat( aPage.css( "border-bottom-width" ) );
27 - aPage.css( "min-height", getScreenHeight() - aPagePadT - aPagePadB - aPageBorderT - aPageBorderB );
30 //shared page enhancements
31 function enhancePage( $page, role ) {
32 // If a role was specified, make sure the data-role attribute
33 @@ -1552,10 +1541,6 @@ define( [
34 $.mobile._handleHashChange( path.parseLocation().hash );
37 - //set page min-heights to be device specific
38 - $.mobile.$document.bind( "pageshow", resetActivePageHeight );
39 - $.mobile.$window.bind( "throttledresize", resetActivePageHeight );
41 });//navreadyDeferred done callback