Closed sharifzadesina closed 6 years ago
It seems this is cause of a bug in imagesloaded
package or infinite-scroll
.
I've fixed it by this code:
infScroll.on('append', function(response, path, items) {
imagesLoaded('.posts-grid', function() {
msnry.layout();
});
});
It's happening also to me but I'm not using imagesloaded nor infinite-scroll
@StErMi You likely need to use imagesLoaded. See https://masonry.desandro.com/faq.html#how-do-i-fix-overlapping-item-elements
It some times fails like this: But it always should be like this:
My script: