gopi1410
gopi1410

Reputation: 6625

jQuery isotope invalid rendering

Why are these two fiddles different? I mean shouldn't they stick to each other in the first fiddle too as in the second fiddle?

Fiddle1: http://jsfiddle.net/gopi1410/EABJw/

Fiddle2: http://jsfiddle.net/gopi1410/EABJw/1/

The only difference in the fiddles is that the first one has the css: #id2 {width: 240px;} while the second fiddle has #id2 {width: 140px;}

Is it a bug in the isotope plugin or am I missing some basic point?

Upvotes: 0

Views: 77

Answers (1)

Fredy
Fredy

Reputation: 2910

Just change your javascript like this:

$(function() {
    var $container = $('#container');
    $container.isotope({
        masonry: {columnWidth: 1},
        itemSelector: '.item'          
    });
});

Upvotes: 1

Related Questions