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

  1. start isotope after images have loaded.. $(window).load(function(){/init plugin here/})

  2. 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

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -