Skip to content

Instantly share code, notes, and snippets.

@trozdol
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save trozdol/43cb2629932fc4cfb78c to your computer and use it in GitHub Desktop.

Select an option

Save trozdol/43cb2629932fc4cfb78c to your computer and use it in GitHub Desktop.
Sencha Touch + Cordova / PhoneGap Status Bar CSS Only Fix
/*=================================
THIS IS THE STATUSBAR FIX FOR IOS
WHEN THE USER AGENT IS IOS, 2OPT
BOX IS ADDED TO THE TOP OF THE APP.
THIS SHOULD GO IN THE HEAD OF
THE INDEX.HTML INSIDE SCRIPT TAGS
BEFORE THE CLOSEING </HEAD> TAG
===================================*/
body.x-ios {
margin-top: 20px !important;
max-height: calc(100% - 20px) !important;
}
body.x-ios::before {
content: " ";
background: gray;
height: 20px;
position: absolute;
width: 100% !important;
top: 0px;
box-shadow: 0 0 0 1px black;
z-index: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment