main
Barış Soner Uşaklı 6 years ago
parent 3649fed3bf
commit 2b45197095

@ -9,8 +9,19 @@ $(document).ready(function() {
setupMobileMenu();
setupQuickReply();
configureNavbarHiding();
fixHeaderPadding();
$(window).on('resize', utils.debounce(configureNavbarHiding, 200));
$(window).on('resize', fixHeaderPadding);
function fixHeaderPadding() {
var env = utils.findBootstrapEnvironment();
if (env === 'sm' || env === 'xs' || env === 'md') {
$('#panel').css('padding-top', $('#header-menu').outerHeight(true));
} else {
$('#panel').css('padding-top', '');
}
}
function configureNavbarHiding () {
var navbarEl = $(".navbar-fixed-top");

Loading…
Cancel
Save