Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | jcarousel-eternal_placeholders-1563776-2-D6-6.x-2.x.patch | 30.6 KB | Mike Lewis |
#3 | Screen Shot 2017-01-24 at 11.56.15 AM.png | 258.58 KB | Mike Lewis |
#3 | Screen Shot 2017-01-24 at 11.56.05 AM.png | 64.23 KB | Mike Lewis |
#2 | Screen Shot 2017-01-24 at 11.53.11 AM.png | 115.56 KB | Mike Lewis |
#2 | Screen Shot 2017-01-24 at 11.52.59 AM.png | 140.35 KB | Mike Lewis |
Comments
Comment #1
deviantintegral CreditAttribution: deviantintegral commentedThis patch also works on 6.x-2.x.
Comment #2
Mike Lewis CreditAttribution: Mike Lewis commentedI 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.
Comment #3
Mike Lewis CreditAttribution: Mike Lewis commentedHere are my settings for the view.
Comment #4
Mike Lewis CreditAttribution: Mike Lewis commentedThis 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.
Comment #5
c2webdev CreditAttribution: c2webdev commentedI have the same issue, but all these patches are for 6, are there any for 7?