mobile-menu: Make sure that main-nav element is hidden

Change-Id: I94e9fe572089f77cd721a9c157bf24a8ae5e3dcf
This commit is contained in:
Tamás Zolnai 2019-10-15 21:16:40 +02:00
parent 976801f82c
commit 3e42e34a7c

View file

@ -800,6 +800,7 @@ L.Control.Menubar = L.Control.extend({
var menuData = self._map.menubar.generateFullMenuStructure();
self._map.fire('mobilewizard', menuData);
$('#main-menu-btn-icon').css('filter', 'drop-shadow(0px 0px 4px #0b87e7)')
$nav.css({height:'', bottom: ''});
}
} else if (!L.Browser.mobile) {
$menu.show().slideUp(250, function() { $menu.css('display', ''); });
@ -808,6 +809,7 @@ L.Control.Menubar = L.Control.extend({
window.mobileMenuWizard = false;
self._map.fire('closemobilewizard');
$('#main-menu-btn-icon').css('filter', '')
$nav.css({height:'', bottom: ''});
}
});
// hide mobile menu beforeunload