acolangelo/jPanelMenu

Panel Flashes on Page Load

Closed this issue · 0 comments

Menu Panel is built and flashes on page-load if there is a boxed layout with no content over the panel area.
Replaced:
function(t){var n=t?"open":"closed";e("body").attr("data-menu-position",n)}

With:

function(t){var n=t?"open":"closed";e("body").attr(
{
"data-menu-position": n,
"id": n
}
)}

Then added this CSS to fix. (Note, if you are already using an ID on the body tag, use "class":n above instead, or better yet, write a little more and use toggleClass)

closed #jPanelMenu-menu {

display:none;
}
}