Jquery Isotope filtering pushes items outside my container -
when use jquery isotope filtering, result pushes .items outside #container. http://petersonspace.com/tss/media/ here's js...
var $container = $('#container'); // init $container.isotope({ // options itemselector: '.item', layoutmode: 'masonry', masonry: { columnwidth: '.item' } }); $('#filters').on('click', 'span', function () { var filtervalue = $(this).attr('data-filter'); $container.isotope({ filter: filtervalue }); });
i've tried many different variable columnwidth option because think that's issue lies, i'm not sure. it's set .item, it's been 400, 250, .custom-resize-class , $container.find('.item')[0]... none of them worked. want .items stay in 1200px wide container after filter clicked.
Comments
Post a Comment