fix: autohide

main
Barış Soner Uşaklı 4 years ago
parent 6812b0eb0d
commit 09320f8981

@ -36,7 +36,7 @@ $(document).ready(function () {
} }
var navbarEl = $(".navbar-fixed-top"); var navbarEl = $(".navbar-fixed-top");
navbarEl.autoHidingNavbar('destroy'); navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
navbarEl.css('top', ''); navbarEl.css('top', '');
var env = utils.findBootstrapEnvironment(); var env = utils.findBootstrapEnvironment();
@ -57,10 +57,13 @@ $(document).ready(function () {
} }
} }
navbarEl.on('show.autoHidingNavbar', function() { navbarEl.off('show.autoHidingNavbar')
.on('show.autoHidingNavbar', function() {
fixTopCss(''); fixTopCss('');
}); });
navbarEl.on('hide.autoHidingNavbar', function() {
navbarEl.off('hide.autoHidingNavbar')
.on('hide.autoHidingNavbar', function() {
fixTopCss('0px'); fixTopCss('0px');
}); });
} }

Loading…
Cancel
Save