The Quark Theme (and child themes) have an error in the gk_quark_classic_menu_init() function on calulating the var prevh = content.outerHeight();
- Code: Select all
var content = $(el.children('.sub-menu').first());
var prevh = content.outerHeight();
var prevw = content.outerWidth();
The value of prevh is correct on page load but changes on window resize so that the height has the wrong value.
I have temporarily fixed the issue by commenting out the call to gk_quark_classic_menu_init()
- Code: Select all
$(window).resize(function() {
if($(window).outerWidth() > $(document.body).attr('data-tablet-width')) {
gk_quark_classic_menu_init();
}
});
I would appreciate any update on when this will be unnecessary.