• When the menu expands the masonry object doesn’t behave exactly right, the masonry elements don’t fit the page exactly as they should and the margins aren’t equal. Is there a way to trigger a “layout” method on the masonry object when the menu is opened similar to the re-layout that happens when the window resizes.

Viewing 1 replies (of 1 total)
  • Thread Starter iamleeadamson

    (@iamleeadamson)

    found the issue, in the themes script.js file (assets/themmattic.js)

    this code

    n.masonryOnClickUpdate = function() {
        setTimeout(function() {
            $('.masonry-grid').masonry();
        },100);
     }

    should have been

    n.masonryOnClickUpdate = function() {
        setTimeout(function() {
           e('.masonry-grid').masonry();
        },100);
     }

    Notice the jquery $ within this script.js file is represented with an ‘e’

Viewing 1 replies (of 1 total)
  • The topic ‘Force Masonry layout when menu expands’ is closed to new replies.