Disappearing header and footer - expected behaviour?

Posted by johncat on 10-Jun-2014 05:19

Place a carousel on a page with a header and/or footer.  Set the height of the carousel greater than the height of the page.  Now, every time you click on the page, it toggles the header and footer on and off.  Is this expected behaviour?  Can I override it?


All Replies

Posted by Roger Blanchard on 10-Jun-2014 05:50

I had a similar problem where my footer would disappear and then reappear. I had to add the following to the PageShow event to solve the issue. I am not sure if this is the same issue you are having.

$("[data-role=footer]").css("position", "fixed");

$("[data-role=header]").css("position", "fixed");

Posted by johncat on 10-Jun-2014 06:22

Thanks, that looks like it ought to do the job.  However, I tried it in both the PageShow and PageLoad events, and it doesn't seem to make any difference.

I notice, looking at the mark-up, that the footer already has an attribute 'data-position="fixed"'.  Does that mean I'm overwriting something that's already set?

Posted by Roger Blanchard on 18-Jun-2014 07:19

That is what the folks at Appery said when I had a similar issue.

This thread is closed