I have an image in my jquery mobile fixed header. When the page loads in Google Chrome or Apple Safari the header content overlaps the content div below the header until I resize the page. Firefox and IE work just fine.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think the problem is that when jQuery Mobile initializes the page, the header image is not loaded and the header is much smaller so jQuery Mobile puts a padding on the
.ui-pageelement that is too small once the image loads. A simple fix for this is to manually set the size of the header image so that it takes-up it’s required space even before its source loads.You could also do this, although it seems pretty hacky to me, force a redraw by triggering the
resizeevent ondocument.readyor maybewindow.load:I pasted this code into the console while on your page and it re-positioned the title element as expected.