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.
The carosel appears to be engaged as soon as I have enough images (thumbnail) to fill the thumbnail row. This gives the appearance of extra images, but simple slides to the same set of images again and again. Could do with being updated so it has to be shown images + 1 before its engaged?
Comment | File | Size | Author |
---|---|---|---|
#6 | galleryformatter-1360684-5.patch | 2.66 KB | Manuel Garcia |
#5 | galleryformatter-1360684-4.patch | 396 bytes | Manuel Garcia |
Comments
Comment #1
johnvThis would require some calculation using $dimensions['slides']['width'] and $dimensions['thumbs']['width'] in
something like
There will be some rounding effect because of the theme-spaces, though.
Comment #2
Manuel Garcia CreditAttribution: Manuel Garcia commentedMake sure that the number of images you want per page fit ENTIRELY on the width space available, INCLUDING paddings etc. Use firebug wich is handy to see the box model.
The infiniteCarousel will make those calculations for you, and it should work fine.
Comment #3
johnvManuel, I am not sure what you mean. Are you saying that
- it should already work,
- or that we need a patch according to #1,
- or that it can be solved in custom css/ code (if so, how?) ?
Comment #4
Manuel Garcia CreditAttribution: Manuel Garcia commentedNevermind, I didn't actualy understand the issue apparently.
Indeed this is a bug, it's got a bit too much padding making the infinite carrousel think there are more.
Please test the patch attached.
Comment #5
Manuel Garcia CreditAttribution: Manuel Garcia commentedComment #6
Manuel Garcia CreditAttribution: Manuel Garcia commentedActauly this introduces a different problem, which is that after brosing the last img on a page, the next does not trigger the next page scroll.
So i've had to add a 'last' thumbnail class per page, and add a class for when the infinite carousel is not enabled so that the last thumbnail doesnt get pushed to the next line.
It's kinda hard to explain, these are tricky issues...
Do test the patch attached =)
Comment #7
johnvComment #8
johnvIt seems this is a duplicate of #1757614: Previous/Next buttons should not appear with 4 images ?
Or: "the themer should make sure you can show 4 images on a row"
Comment #9
Manuel Garcia CreditAttribution: Manuel Garcia commentedWe should probably re-test this issue see if its stil happening with the latest 7.x -
Comment #10
kscheirerPlease test again with latest dev version.