Conversation
supportHello, I created a full-width dropdown menu and noticed that when the browser resizes, the left style of .wp-block-ollie-mega-menu__menu-container updates incorrectly. One solution could be to reference the parentToggle’s BoundingClientRect. const computeMegaMenuFullWidthLeft = function(menuEl) { const parentToggle = menuEl.parentElement?.querySelector(‘.wp-block-ollie-mega-menu__toggle’) ?? null if (!parent) return null const parentRect = parentToggle.getBoundingClientRect() return -parentRect.x } Thank you so much for this very useful plugin!
Hey there, we’ll have a fix for this in the next release. Stay tuned!
Hey there, we’ll have a fix for this in the next release. Stay tuned!