I'm using ion-slide-box
, but the issue is, my ion-slide
s are not in the same height, So it sets all the ion-slide
s to the size of heights one. Following is an example
So, ion-slide-box
height will be 100px, which make a blank space (70px) in the slide1. And when the user slide by using that blank space (70px), slider
doesn't work.
What could be the way/workaround to have the slidebox
work for different slide heights?
$ionicScrollDelegate.resize(); did the trick
check this for codepen
You can use flex-box to organize the slides height:
.slider-slides {
display: flex;
}
Don't forget to reset slides height and all slides will get the biggest height :)
.slider-slide {
height: auto;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With