From 86be97dbfa09d6bad67de1aebfce34fd1d6b02c0 Mon Sep 17 00:00:00 2001 From: Guoyuanqiang Date: Thu, 21 Feb 2019 19:15:14 +0800 Subject: [PATCH] fix(module: carousel): fix carousel detect height change need to init carouseItem (#290) --- components/carousel/carousel.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/components/carousel/carousel.component.ts b/components/carousel/carousel.component.ts index 2ac95bd0..7d67f9ee 100644 --- a/components/carousel/carousel.component.ts +++ b/components/carousel/carousel.component.ts @@ -490,6 +490,7 @@ export class CarouselComponent implements AfterViewInit, OnDestroy { if (this.slideHeight !== nativeElement.querySelector('carouselslide').clientHeight) { this.initCarouselSize(); this.getListStyles(-index * this._rationWidth); + this.carouselInit(this.items); } } }