Skip to content

Commit

Permalink
fix(module: carousel): fix carousel detect height change need to init…
Browse files Browse the repository at this point in the history
… carouseItem (#290)
  • Loading branch information
Guoyuanqiang authored and fisherspy committed Feb 21, 2019
1 parent e251652 commit 86be97d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 86be97d

Please sign in to comment.