If a carousel View is returning a number of items less than the value set for 'visible' in the style options, empty placeholders are added by the jCarousel JS. We should limit visible to be never greater than the number of items returned from the Views query.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deviantintegral’s picture

Status: Active » Needs review
FileSize
1.07 KB

This patch also works on 6.x-2.x.

Mike Lewis’s picture

I have a very similar problem in 6.x-2.6. I have a carousel with 10 images. If my screen resolution or browser zoom are such that more than 10 items can be displayed, then jCarousel creates placeholders for all slides to the right of the 10th slide. Then when it begins to scroll, each subsequent slide has an image. See the screen shots.

I applied the patch in #1 to no effect.

Mike Lewis’s picture

Here are my settings for the view.

Mike Lewis’s picture

This solves my problem. Seems the this.first index of the first element in the carousel didn't get initialized when setting it up, so the placeholders never got replaced.

Hope this helps. This is for 6.x-2.x, so I don't know.

c2webdev’s picture

I have the same issue, but all these patches are for 6, are there any for 7?