jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 736 forks source link

Multiple carousel on a page #711

Closed khalid-s closed 10 years ago

khalid-s commented 10 years ago

Hi, I am having an issue when trying to put multiple carousels on a single page.

In the second one the

  • width is not calculated. It seems that this part of the code breaks after the first carousel and I cant find why or what the problem is.

    I am using the responsive carousel.

    Thanks

  • khalid-s commented 10 years ago

    Hi again,

    I found a solution which worked but am not sure if its correct.

    In the jcarousel.responsive.js instead of using

    jcarousel.jcarousel('items').css('width', width + 'px');

    i used the following

    jcarousel.find('li').each(function(){ $(this).css('width', width + 'px'); });