开发者

jqm scrolling footer and viewport strange behaviors

开发者 https://www.devze.com 2023-03-10 02:30 出处:网络
I\'m creating a mock-up of a function to be added to a mobile version of a site. The idea is to have a horizontally scrolling footer of links with vertically scrolling content; in effect, recreating t

I'm creating a mock-up of a function to be added to a mobile version of a site. The idea is to have a horizontally scrolling footer of links with vertically scrolling content; in effect, recreating the functionality of the native iOS behavior when double-tapping the home button.

Problem: when the page loads, it appears the viewport is not getting recalculated to match the new content area height. This leaves an ugly blank area (apparently the size of the URL bar in iOS Safari) below the scrollable footer.

I've tried adding a timeout to recalculate the height (using the function in scrollview.js). When using a fixed-position footer, the footer behaves strangely but eventually reappears in the expected place - the blank space remains, however.

Link to jsfiddle code. Link to imgur screenshot开发者_开发技巧 from my iPhone.

0

精彩评论

暂无评论...
验证码 换一张
取 消