kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.34k stars 5.88k forks source link

Feature: implement maxHeight for vertical slick #4134

Open clemdesign opened 2 years ago

clemdesign commented 2 years ago

Hello,

I propose this PR in order to support maxHeight for vertical slick.
Currently, the list height is determined by number of slides to show and slides height.

For better control, especially in responsive projects (mobile with different screen size), I propose to add an option to set maxHeight of slides list.

This option is enabled for vertical=true configuration.

If maxHeight > list height computed from slides, the option is not take in consideration.

Thanks