codrops / Elastislide

Elastislide is a responsive image carousel that will adapt fluidly in a layout. It is a jQuery plugin that can be laid out horizontally or vertically with a pre-defined minimum number of shown images
362 stars 111 forks source link

At mixed Images Landscape/Portrait the Slide is to height #21

Open Bithie opened 10 years ago

Bithie commented 10 years ago

Hi, at first your Slider it's a great Work.

Is there a Solution for mixed Images in a Slieder? If i have images in landscape and portrait in the slider, the height of the Slider is oriented at the portrait images height.

Any way to fix this. Maybe crop the portrait images or so?

best regards an sorry for my english

AWelshCorgi commented 10 years ago

Also having this issue. It seems the width is hardcoded into the jquery, as far as I can tell. This is causing the mixed height/width preview images to scale to the hardcoded width (width: 24.956063268892795% according to my inspector), making weird gaps with thin images and forcing the wider images to shrink in height.

It would be best if this width was not imposed through the Jquery, and was perhaps a custom CSS option?