jquery Isotope option for auto height on element

Uffo picture Uffo · Apr 15, 2012 · Viewed 14.4k times · Source

So I'm using the isotope masonrylayout

$('section').isotope({itemSelector:'article',layoutMode:'masonry',transformsEnabled: false, animationEngine: 'jquery',masonry:{columnWidth:8}});

The problem is that if I don't set the height for the article in css, the layout doesn't look good the items overlap and stuff, but I can't set a fixed height for the elements, since they are blog posts and can change in size, do you guys have any tips on how to solve this?

Answer

Uffo picture Uffo · Apr 15, 2012

Problem solved, you need to call $(window).load instead of $(document).ready(