Skip to content

Instantly share code, notes, and snippets.

@ayozebarrera
Created August 8, 2014 12:52
Show Gist options
  • Save ayozebarrera/f5d67ce78dd89890c361 to your computer and use it in GitHub Desktop.
Save ayozebarrera/f5d67ce78dd89890c361 to your computer and use it in GitHub Desktop.
Phonegap iOS 7 issue
function onDeviceReady() {
if (parseFloat(window.device.version) === 7.0) {
document.body.style.marginTop = "20px";
}
}
document.addEventListener('deviceready', onDeviceReady, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment