Quark submenu error on resize - bug report - temporary fix

Multipurpose WordPress Theme Forum Support
GK User
Mon Jun 29, 2015 8:56 am
Please regard this as a bug report for wp-content/themes/Quark/js/functions.js.

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.
User avatar
Fresh Boarder

GK User
Mon Jun 29, 2015 10:48 am
Hello,

Thank you for your feedback, we'll analyze this function and add a fix for this issue in future updates, for now it's enough to comment out this fragment.
User avatar
Moderator


cron