jCarousel Infinite Loop - no width or height set

chrisjlee picture chrisjlee · Aug 5, 2010 · Viewed 8.3k times · Source

I've setup jcarousel to dynamically load elements as they disappear and then have them reappear

now it's given me an error saying: "No width/height set for items."

I've tried the hack described here: http://old.nabble.com/jCarousel:-No-width-height-set-for-items.-td13913308s27240.html

and it caused firefox to crash (probably because it's looping constantly)

any ideas?

Answer

ThmHarsh picture ThmHarsh · Aug 17, 2012
jQuery('#mycarousel').jcarousel(
{
    auto : 2,
    scroll : 1,
    wrap : 'last',
    initCallback : mycarousel_initCallback,
    itemFallbackDimension: 300
});