Some of my app's elements, particularly back buttons in headers, sit directly under the transparent status bar.
I used this solution, only slightly modified from one I found online:
$(document).delegate("div[data-role='page']", "pageinit", function () { if (navigator.userAgent.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i)) { $("body").addClass("ios7"); $('body').append('<div id="ios7statusbar"/>'); } })
#ios7statusbar { width:100%; height:20px; background-color:white; position:fixed; z-index:100; } .ios7 .ui-page { margin-top: 20px; }
No comments:
Post a Comment
Comments are moderated, so you'll have to wait a little bit before they appear!