Page 1 of 1

header and footer disappear when I scroll down the RSS feed

Posted: Fri Dec 16, 2011 6:53 pm
by Will

Any idea how to keep the header/footer fixed during scrolling? They disappear during scrolling on the test of the web version.


header and footer disappear when I scroll down the RSS feed

Posted: Fri Dec 16, 2011 7:00 pm
by maxkatz

Once you stop scrolling, they should appear again. Do you see it happening?


header and footer disappear when I scroll down the RSS feed

Posted: Fri Dec 16, 2011 7:37 pm
by Will

yeah i don't want it to happen while it's scrolling, as they pop on an off every time you start and stop scrolling. thanks for reply


header and footer disappear when I scroll down the RSS feed

Posted: Fri Dec 16, 2011 9:06 pm
by maxkatz

Add this code on page load:
code
$('div[data-role="header"]').removeAttr("data-position");
$('div[data-role="header"]').removeClass("ui-header-fixed");
$('div[data-role="header"]').removeClass("ui-fixed-overlay");
/code


header and footer disappear when I scroll down the RSS feed

Posted: Fri Dec 16, 2011 9:21 pm
by Will

Thanks for the reply!

Now it's gone unless I'm at the top of the screen and the bottom one still does that (noticed your code refers to the header so probably makes sense).

So don't worry just wondering how you can keep those fixed but maybe that's better for the navbar and not the header/footer.


header and footer disappear when I scroll down the RSS feed

Posted: Fri Dec 16, 2011 9:51 pm
by maxkatz

Did you want only the content between header/footer to scroll?


header and footer disappear when I scroll down the RSS feed

Posted: Sat Dec 17, 2011 1:44 pm
by Will

yeah something like that where you can flick down through the feed without a scroll bar. i guess i don't need a header/footer if there is a navbar (something fixed that doesn't move or flicker).

thanks again for the help Max


header and footer disappear when I scroll down the RSS feed

Posted: Sat Dec 17, 2011 4:30 pm
by maxkatz

Yes, you can easily remove header/footer in screen properties.


header and footer disappear when I scroll down the RSS feed

Posted: Sat Dec 17, 2011 4:58 pm
by Will

can header/footer be fixed and scroll without scrollbar (like facebook stream) or flickering during scrolling?


header and footer disappear when I scroll down the RSS feed

Posted: Sat Dec 17, 2011 5:32 pm
by maxkatz

Looks like it was just added to jQuery Mobile (part of version 1.1): https://twitter.com/#!/jquerymobile/s...