From 94bac1b47c39986adabeb7f1ce7dca57500bdf4a Mon Sep 17 00:00:00 2001 From: VTHINKXIE Date: Thu, 7 Sep 2017 15:22:03 +0800 Subject: [PATCH] fix(module:carousel): carousel slide height depend on inner content (#242) close #162 close #170 --- src/components/carousel/nz-carousel.component.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/carousel/nz-carousel.component.ts b/src/components/carousel/nz-carousel.component.ts index cc446d8edb2..9e936080b46 100755 --- a/src/components/carousel/nz-carousel.component.ts +++ b/src/components/carousel/nz-carousel.component.ts @@ -107,8 +107,6 @@ export class NzCarouselComponent implements AfterViewInit, OnDestroy { this._renderer.removeStyle(this.slickTrack.nativeElement, 'height'); this._renderer.setStyle(this.slickTrack.nativeElement, 'height', `${this.slideContents.length * this.hostElement.nativeElement.offsetHeight}px`); } else { - this._renderer.removeStyle(this.slickList.nativeElement, 'height'); - this._renderer.setStyle(this.slickList.nativeElement, 'height', `${this.hostElement.nativeElement.offsetHeight}px`); this._renderer.removeStyle(this.slickTrack.nativeElement, 'width'); this._renderer.setStyle(this.slickTrack.nativeElement, 'width', `${this.slideContents.length * this.hostElement.nativeElement.offsetWidth}px`); }