richardscarrott / jquery-ui-carousel

jQuery RS Carousel is a responsive and touch-enabled carousel written on top of jQuery and the jQuery UI Widget Factory providing a full and familiar API in less than 2.6kB minified and gzipped.
http://richardscarrott.github.io/jquery-ui-carousel/
192 stars 56 forks source link

First item not shown when adding to empty carousel #69

Closed jonyt closed 9 years ago

jonyt commented 11 years ago

hi,

As far as I can tell if I add items to an empty carousel the first item won't be shown. To reproduce: instantiate an empty carousel and add several items. The first one won't be shown.

richardscarrott commented 10 years ago

I've not been able to reproduce, are you using the add method to add the item, e.g.:

$(':rs-carousel').carousel('add','<li class="rs-carousel-item"></li>');

You do need to add the rs-carousel-item className to the item manually which is possibly worth adding automatically.

If you're still having issues can you provide a test case?

richardscarrott commented 9 years ago

Closing for now.