jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

BlackBerry OS 5 page height not rendered correctly. #594

Closed chris-rudmin closed 12 years ago

chris-rudmin commented 13 years ago

On BlackBerry OS 5 when using a footer with data-position="fixed" the footer does not go to the bottom of the screen. Also if any secondary pages have content which is shorter than the first the background does not fill to the bottom, but leaves a white space.

I found a workaround whereby on document ready I set document.documentElement.style.height = screen.height + "px". Note: I did not test the effect of this change on other browsers.

markdarb commented 13 years ago

In 1.0a3 this is an issue in everything I've tested: Chrome, Firefox and Android (PhoneGap).

Inspecting the document in Chrome and Firefox, I see that the height of the body element is 0. Also, in Chrome the height of the html element is 0 too.

This issue seems to have come and gone a fair bit when I've been trying out different versions and custom builds of jQuery Mobile. Does anyone know what the main bit of responsible code is, or what needs doing to make sure it's fixed (and that it stays fixed)?

scottjehl commented 12 years ago

This should be fixed as of Friday's transitions improvements. We'll be tweaking the height to use availHeight tomorrow as well, but this tested out well for me. Thanks!