I found an old thread where this was discussed...

http://groups.google.com/group/jquery-en/browse_frm/thread/41b01c1c21f61934/0e6da863d9e26a2a?lnk=gst&q=jcarousel+infinite#0e6da863d9e26a2a

For those of you facing the message 'jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...' in IE 7, even when jCarousel is working in FF and Safari, the problem has to do with IE 7 resizing. When the jCarousel recalculates itself as a result of a resize of page reflow it can't get width and height for the list items for some strange reason.

Rather than comment out the onresize logic, I just delayed it to run after the page reflowed.

I changed this line:

      this.funcResize = function() { self.reload(); };

to this line:

this.funcResize = function() { setTimeout( function() { self.reload(); }, 100 ) };

and everything is fine in IE 7.

Alan Gutierrez

Reply via email to