Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

feature request: fixed toolbars inside .content-primary and .content-secondary #2501

Closed
frequent opened this issue Sep 22, 2011 · 2 comments
Closed

Comments

@frequent
Copy link
Contributor

I was trying to use the JQM-docs layout with two separate headers - one inside the content-primary section, the other one inside the content-secondary section.

This disables the fixedToolbars functionality for the header.

If I change the toolbarSelector inside the fixedToolbar function from

toolbarSelector = ".ui-header-fixed:first, ui-footer-fixed:not(.ui-footer-duplicate):last",

to

toolbarSelector = ".ui-header-fixed:first, .content-primary .ui-header-fixed, .content-secondary .ui-header-fixed, .ui-footer-fixed:not(.ui-footer-duplicate):last",

it works like a charm.

Maybe a worthwhile addition.

Regards, Frequent

@frequent
Copy link
Contributor Author

if I may add, I can think of plenty of uses for other fixed elements besides fixed/header footers, so a general .ui-element-fixed would be nice to have.

This already works, if I set var $ap = $('body'); instead of the current var $ap = ...~ ui-page-active; so here's to hoping you like this more general approach on fixing elements :-)

@toddparker
Copy link
Contributor

Thanks added to the feature request wiki:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants