malsup / cycle2

2nd gen cycling
899 stars 236 forks source link

Auto Height Container and Carousel Visible #542

Open jperasmus opened 10 years ago

jperasmus commented 10 years ago

Hey Malsup,

I was wondering if it would be possible for you to look into an issue I'm experiencing using a vertical carousel with dynamic content.

What I'm trying to do is show a vertical carousel slider with 3 divs at a time, but because the content of these divs are dynamic the heights are varying and getting cut of. I've found the data-cycle-auto-height=container attribute which works nicely with dynamic content, but the problem is that, by the look of things, it doesn't take the data-cycle-carousel-visible=3 attribute into consideration for the height calculation anymore. It creates a dynamic height, but only for one slide at a time.

I guess simply put, my question is: is it possible to use data-cycle-auto-height=container and data-cycle-carousel-visible=3 together on one slider?

Your help is much appreciated.

ghost commented 10 years ago

Maybe post your query to this existing issue: https://github.com/malsup/cycle2/issues/442