Created
October 28, 2013 17:13
-
-
Save sseletskyy/7200765 to your computer and use it in GitHub Desktop.
Fix for layout in iOS7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onDeviceReady: function() { | |
if(window.device && parseFloat(window.device.version) >= 7.0){ | |
//$("footer").css("padding-bottom","20px"); | |
document.body.style.marginTop = "20px"; | |
// jQuery | |
$(".container").css("margin-top","20px"); | |
// pure JS | |
document.getElementsByClassName('container')[0].setAttribute('style', 'margin-top: 20px'); | |
} | |
app.receivedEvent('deviceready'); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment