$elHeader = $elPage.find( ":jqmData(role='header')" ),
$elFooter = $elPage.find( ":jqmData(role='footer')" ),
$elContent = $elPage.find( ":jqmData(role='content')" ),
- resultMinHeight;
+ resultMinHeight,
+ dpr = 1,
+ layoutInnerHeight = window.innerHeight;
- resultMinHeight = window.innerHeight - $elHeader.height() - $elFooter.height();
+ if ( !$.support.scrollview ) {
+ dpr = window.outerWidth / window.innerWidth;
+ layoutInnerHeight = Math.floor( window.outerHeight / dpr );
+ }
+
+ resultMinHeight = layoutInnerHeight - $elHeader.height() - $elFooter.height();
$elContent.css( "min-height", resultMinHeight - parseFloat( $elContent.css("padding-top") ) - parseFloat( $elContent.css("padding-bottom") ) + "px" );
},
$elContent = $elPage.find( ":jqmData(role='content')" ),
resultContentHeight = 0,
resultFooterHeight = 0,
- resultHeaderHeight = 0;
+ resultHeaderHeight = 0,
+ layoutInnerHeight = window.innerHeight,
+ dpr = 1;
if ( $elPage.length ) {
$elFooter = $elPage.find( ":jqmData(role='footer')" );
$elFooter.css( "bottom", 0 );
}
- resultContentHeight = window.innerHeight - resultFooterHeight - resultHeaderHeight;
+ if ( !$.support.scrollview ) {
+ dpr = window.outerWidth / window.innerWidth;
+ layoutInnerHeight = Math.floor( window.outerHeight / dpr );
+ }
+
+ resultContentHeight = layoutInnerHeight - resultFooterHeight - resultHeaderHeight;
if ( $.support.scrollview ) {
$elContent.height( resultContentHeight -