Open solugebefola opened 6 years ago
Adding an image to the slide with width: 100% results in a miscalculated slide height. The slick-list classed div is slightly taller than the image.
width: 100%
slick-list
[ http://jsfiddle.net/rxnbpv35/ ]
use this jsfiddle to reproduce your bug: http://jsfiddle.net/simeydotme/fmo50w7n/ we will likely close your issue without it.
====================================================================
.slick-slide div height is equal to image height.
.slick-slide
slick-slide height is slightly bigger than div height
slick-slide
You probably need to add vertical-align: middle; to the img
vertical-align: middle;
img
I had the same problem with react-slick. div outside the img was taller and I couldn't find out why. this issue worked for me add line-height: 0 to .slick-track
react-slick
div
line-height: 0
.slick-track
[ http://jsfiddle.net/rxnbpv35/ ]
use this jsfiddle to reproduce your bug: http://jsfiddle.net/simeydotme/fmo50w7n/ we will likely close your issue without it.
====================================================================
Steps to reproduce the problem
width: 100%
====================================================================
What is the expected behaviour?
.slick-slide
div height is equal to image height.====================================================================
What is observed behaviour?
slick-slide
height is slightly bigger than div height====================================================================
More Details