Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4486 from ngharo/master

Prevents scrollbars on pages with custom borders
  • Loading branch information...
commit d2fd2ac19299fdcb4286254caf7969a2b361c3dc 1 parent 93d9377
@jaspermdegroot jaspermdegroot authored jaspermdegroot committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 js/jquery.mobile.navigation.js
View
6 js/jquery.mobile.navigation.js
@@ -542,9 +542,11 @@ define( [
function resetActivePageHeight(){
var aPage = $( "." + $.mobile.activePageClass ),
aPagePadT = parseFloat( aPage.css( "padding-top" ) ),
- aPagePadB = parseFloat( aPage.css( "padding-bottom" ) );
+ aPagePadB = parseFloat( aPage.css( "padding-bottom" ) ),
+ aPageBorderT = parseFloat( aPage.css( "border-top-width" ) ),
+ aPageBorderB = parseFloat( aPage.css( "border-bottom-width" ) );
- aPage.css( "min-height", getScreenHeight() - aPagePadT - aPagePadB );
+ aPage.css( "min-height", getScreenHeight() - aPagePadT - aPagePadB - aPageBorderT - aPageBorderB );
}
//shared page enhancements
Please sign in to comment.
Something went wrong with that request. Please try again.