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
{{ message }}
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
I'm experimenting, but I don't find the right solution for dynamic menu width based on a css variable. My responsive site is using a width for the menu which is >>calc(var(--bus) * 14)<<. Site recalculates "bus" (basic unit size) upon $(window).resize and menu width should be updated, menu should be redrawn. What is the right method to do so, please?
Initial options settings works only for loading, not for resizing:
$('#menu').multilevelpushmenu({
menuHeight: 'calc(var(--bus) * 14)'
});
The variable "bus" is not based on % of total width and not based on vw (width of the viewport), but it is calculated based on a space needed for my content.
Many thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm experimenting, but I don't find the right solution for dynamic menu width based on a css variable. My responsive site is using a width for the menu which is >>calc(var(--bus) * 14)<<. Site recalculates "bus" (basic unit size) upon $(window).resize and menu width should be updated, menu should be redrawn. What is the right method to do so, please?
Initial options settings works only for loading, not for resizing:
$('#menu').multilevelpushmenu({
menuHeight: 'calc(var(--bus) * 14)'
});
The variable "bus" is not based on % of total width and not based on vw (width of the viewport), but it is calculated based on a space needed for my content.
Many thanks!
The text was updated successfully, but these errors were encountered: