Closed gideonvd closed 13 years ago
Give the latest version a try. I added a hack to account for iOS, so that it uses $(document) instead of $(window) to get the correct height. Let me know if it does/doesn't work.
And by latest version, I mean the one from Github, not from my website. If this works, I'll include it in version 1.1.
Hey Scott, I finally got this bloody gizmo online. Sorry for the long wait. The added code works well. It has however one nasty side-effect. The background-attachment seems no longer fixed. Scrolling a page in landscape mode also scrolls the bg. The background seems attached to the content rather than to the viewport.
Ah, yeah, that's a problem with Mobile WebKit, not Backstretch itself. Mobile WebKit/Safari doesn't support position:fixed.
http://blog.mspace.fm/2009/10/01/iphone-mobile-safari-css-position-fixed/
There are a few workarounds, but none of them with work with this plugin.
When you hold the Ipad in landscape mode the background fills the view-port fine but scrolling down cut's it off. The same would happen without background-attachment: fixed;