Masonry & Collapse-o-matic
-
I am attempting to get Masonry to re-sort after pressing the expand button from the Collapse-o-matic plugin.
At present, I’ve put the following javascript in a number of places in collapse.js. Some places do nothing, while the logical places to put it seem to work in reverse.
Basically; pressing expand sorts masonry as if the post is not expanded, and pressing close sorts masonry as if the post IS expanded.
Is there a place within the collapse.js file, or elsewhere in the plugin, where this function would act after the html has been updated?
` jQuery(‘#sort’).masonry({
columnWidth: 80, // Line that affects gaps between columns
animate: true,
itemSelector: ‘.box’
},
function() { $(this).css({
margin: ’10px’
});
});
- The topic ‘Masonry & Collapse-o-matic’ is closed to new replies.