metafizzy / isotope

:revolving_hearts: Filter & sort magical layouts
https://isotope.metafizzy.co
11.05k stars 1.41k forks source link

SmartResize doesn't work - not a function #781

Closed wordica closed 10 years ago

wordica commented 10 years ago

script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> script type="text/javascript" src="js/imagesloaded.pkgd.min.js"> script type="text/javascript" src="js/isotope.pkgd.min.js">

$(document).on("ready",, function(){

$(window).smartresize(function(){

}); } UNDEFINED is not a function

desandro commented 10 years ago

smartresize is no longer included in Isotope v2. But good news! Isotope v2 is optimized for responsive layouts, so you shouldn't have to do any funky resize stuff.

wordica commented 10 years ago

Ok so how can I do this http://jsfiddle.net/desandro/P6JGY/24/ in v2. Only margin auto and width 100% in css doesn't do this.

desandro commented 10 years ago

See http://isotope.metafizzy.co/layout-modes/masonry.html#isfitwidth

wordica commented 10 years ago

Thanks