You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OwlCarousel seems to have to load all images before being able to calculate widths while autoWidth is set to true. Maybe I'm just doing it wrong.
My setup basically looks like this:
The thing is that I already know how big my images are and don't have to wait for images to load. Also, I'm resizing images as the browser's window is resized, but that is working like it's supposed to do once the slider is initialised.
Is there a way to tell it to rely on widths I already provide?
The text was updated successfully, but these errors were encountered:
This works, yes!
It also fixes a problem I had with cases where several images are broken (which is a problem on my side), those would render the slider unusable.
Isn't $el.children().eq(0).width() the same as $el.children().width(), as it already takes the first element of the result? :)
OwlCarousel seems to have to load all images before being able to calculate widths while
autoWidth
is set totrue
. Maybe I'm just doing it wrong.My setup basically looks like this:
The thing is that I already know how big my images are and don't have to wait for images to load. Also, I'm resizing images as the browser's window is resized, but that is working like it's supposed to do once the slider is initialised.
Is there a way to tell it to rely on widths I already provide?
The text was updated successfully, but these errors were encountered: