I also ran into this problem. I fixed it badly, but it works. in both browsers. The problem was the owl-stage element. The owl-carousel lib has counted the width property, but objects do not fit into the wrapper. So I have to call the function after the init event and add 100px to it. I used the setTimeout function with this. A very bad approach that I know, but there are a lot of js functions in my project, and the correct width property is not always obtained (sometimes I get undefined )
So the code:
$('.owl-carousel').owlCarousel({ margin:90, nav:true, dots:true, autoWidth:true, afterInit: setWidth() }); function setWidth(){ setTimeout(function(){ var carWidth = $('.owl-stage').width() + 100; $('.owl-stage').width(carWidth); },200); }
I am sure that it could work without setTimeout , but the timing cannot wait (* bad for itself).
Hope this helps!
cs.matyi
source share