-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with fixed header #48
Comments
Can you provide me with some demo so I can check what's happening? |
You can try to fix this bug with thoses lines of code (jQuery) : // Resize |
Ah I see, when the menu opens, if you have So a workaround would be something like this: var $fixed_header = $('#fixed-header'); // your fixed header element
var $container = $('#container'); // element that you've set to pushContent
Nav.on('toggle', function(e, settings) {
if (e.data.action == 'open') {
$fixed_header.css('top', -$container.offset().top);
}
});
Nav.on('close', function(e, settings) {
$fixed_header.css('top', 0);
}); |
First of all, thank you for this awesome menu!!!
I am having trouble getting it to work with a fixed header. When opening the menu, I have it set to push the content to the right. It works fine on first page load but if I scroll down and then open the menu, the fixed header disappears. I can't figure out what is causing this to happen. Hope you have a solution, thank you.
The text was updated successfully, but these errors were encountered: