javascript - Isotope height of elements not set correctly -
so height of isotope elements isn't set correctly, elements overlap each other: http://bz-fotografie.de/kundengalerie/gallery-1/
strange thing is, works on localhost, not live.
i'm not js guru, structure in helper.js might not best...
the problem when run .isotope images not yet loaded, plugin cannot calculate size..
you have different options choose from
start isotope after images have loaded.. $(window).load(function(){/init plugin here/})
use imagesloaded plugin: http://isotope.metafizzy.co/docs/help.html#imagesloaded_plugin
3.call relayout once images loaded $(window).load(function(){$('#thumbs').isotope('relayout');});
4.if li elements fixed size, give them dimensions through css, , isotope pick them up..
credits: stack overflow..
Comments
Post a Comment