mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-24 01:40:25 +00:00
enabled an opt-out for headers or footers that shouldn't follow on scroll. Just add [data-position="inline"]
This commit is contained in:
parent
65343f158b
commit
daa76e00fa
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@
|
|||
$.fn.fixHeaderFooter = function(options){
|
||||
return $(this).each(function(){
|
||||
if( $(this).data('fullscreen') ){ $(this).addClass('ui-page-fullscreen'); }
|
||||
$(this).find('.ui-header').addClass('ui-header-fixed ui-fixed-inline fade'); //should be slidedown
|
||||
$(this).find('.ui-footer').addClass('ui-footer-fixed ui-fixed-inline fade'); //should be slideup
|
||||
$(this).find('.ui-header:not([data-position="inline"])').addClass('ui-header-fixed ui-fixed-inline fade'); //should be slidedown
|
||||
$(this).find('.ui-footer:not([data-position="inline"])').addClass('ui-footer-fixed ui-fixed-inline fade'); //should be slideup
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue