You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice plugin, thanks for sharing! I experience a small issue; when the drawer is opened and I resize my browser, the mediaqueries for the menu kicks in, but the width on the menu is not removed.
I hide the drawer by adding a resize event, to trigger the hide method, but this does not fully function/revert somehow, the width on the #navbar remains. Do you have any suggestions to "properly" close the drawer? Of course I can hack around, remove the width, but I like it doing it the proper way :)
$(window).on('resize.bs.drawer', function() {
//$(window).width() > 768 is not accurate. Test a class to see if the mediaquery is present.
if ( $(".drawer .navbar-toggle").css("display") === "none"){
//Close the drawer, hide the backdrop.
//The width of the menu is not reverted to its original...
$target.drawer('hide');
//Unbind this resize event.
$(this).off('resize.bs.drawer');
}
});
The text was updated successfully, but these errors were encountered:
Hi,
Nice plugin, thanks for sharing! I experience a small issue; when the drawer is opened and I resize my browser, the mediaqueries for the menu kicks in, but the width on the menu is not removed.
I hide the drawer by adding a resize event, to trigger the hide method, but this does not fully function/revert somehow, the width on the
#navbar
remains. Do you have any suggestions to "properly" close the drawer? Of course I can hack around, remove the width, but I like it doing it the proper way :)The text was updated successfully, but these errors were encountered: