vitalii-andriiovskyi / ngx-owl-carousel-o

owl-carousel for Angular >=6
MIT License
177 stars 51 forks source link

No Slides to Show #222

Closed tnohelty closed 1 year ago

tnohelty commented 2 years ago

I get the Warning: "There are no slides to show. So the carousel won't be re-rendered" 2 times on the console followed by the Warning: Option 'items' in your options is equal to the number of slides. So the navigation got disabled. I have checked using the "initialized" event and there are 4 slides loaded and the option items is set to 1. The responsive array is set to 4. The display of the page seems to work just fine. One thing that may be normal, but I have loop set to true and the display continues to move the slide items to the left one at a time. So I am wondering why these warnings are displayed. Assuming the second warning is accurate, I am also confused as why the looping continues (unless navigation means the arrows that i have defined that are not showing). I think I just need an explanation as to what these warnings are telling me. Thanks

tnohelty commented 2 years ago

Also wondering what options can be used to stop the carousel from displaying partial slide entries. I have an image that is 350px by 200px and I am seeing partial images displayed when the screen size will allow rather than centering a lower number of images. It seems like the element is calculating size and thinking it can display all when it can only display a fraction of it. my item count options for responsive are:

responsive: { 0: { items: 1 }, 414: { items: 1 }, 576: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } /, 1200: { items: 4 }/ }

vitalii-andriiovskyi commented 1 year ago

It's fixed within the issue https://github.com/vitalii-andriiovskyi/ngx-owl-carousel-o/issues/93