Open robvaneck opened 4 years ago
@borriej
It seems the problem is with <clever-card-deck>
. If you put <owl-carousel-o>
in <body>
, the width of the carousel adopts to the width of the <body>
. Note the width of the carousel always inherits the width of its parent DOM-element. Maybe <clever-card-deck>
doesn't change after resizing of the screen.
Hi 👋
Im using Angular 9 with:
My carousel works great, but does not resize the width (of slides, nor the wrapper) automatically when I resize the browser, or the phone.
How do i fix this?
On a resize of the browser, I want the slides to fit the carousel to 100% of the screen width. At the moment it hangs on the old size in pixels on the element.
I tried a *ngIf="" approach, but this causes a flickering carousel.
I also tried the ViewChild('carousel') approach and calling
this.carousel.carouselService.refresh();
but this caused the slider to have slides that were very small.Im using these options:
https://ibb.co/17xVSBG