Commit graph

10 commits

Author SHA1 Message Date
scottjehl
83f6ff9eef added support for fullscreen data attr on pages. When present, child headers and footers will be absolute positioned and invisible when hidden 2010-10-05 16:08:11 -04:00
scottjehl
0de4e457be changed setTop logic so it works for abs or rel positioning for both headers and footers (rather than just footers) 2010-10-05 15:36:10 -04:00
scottjehl
deaf0d94d9 refactored the event handling for touch and scroll 2010-10-05 11:58:55 -04:00
scottjehl
f1f5102a23 removed resize and orientationchange event handler, as it fired all the time on iPhone. geez. 2010-10-04 20:18:32 -04:00
scottjehl
60d256c4b2 fixed toolbars are fixed toolbars are fixed 2010-10-04 20:09:10 -04:00
scottjehl
ecbe18d809 make sure stickyfooter is defined before checking length 2010-10-04 19:14:19 -04:00
scottjehl
ced22f6962 Sticky footers
Tag a footer div with data-id="foo" and it'll stay visible when transitioning to another page that has a footer of the same data-id.

Fixed #72
All proposed changes above are either implemented, or covered through alternate means.
2010-10-04 19:00:30 -04:00
scottjehl
ed96011a28 major refactor - now uses relative positioning.
Interactions still aren't perfect, but the code is cleaner!
2010-10-01 23:36:25 -04:00
Kin Blas
0a2a82102e Fixed Issue 58 Fixed Headers/Footers Scroll with the document occassionally.
The bug seems to be caused by the fact that code inside show() is triggering a scrollstart event while still in the midst of handling the scrollstop event. This threw off the setting of showAfterScroll causing the currentstate to be stuck at "inline", so no hide/show code is ever triggered after that.

- Modified the scrollstart and sccrollstop callbacks to set showAfterScroll prior to calling show()/hide().
- movied the hide() call in scrollstart handler underneath the check for 'overlay'.
2010-09-24 11:09:45 -07:00
scottjehl
6fa401276a renamed files with jQuery.mobile. prefixes 2010-09-18 09:59:33 -04:00
Renamed from js/jQuery.fixHeaderFooter.js (Browse further)