Skip to content

Commit

Permalink
fix(module:carousel): carousel slide height depend on inner content (#…
Browse files Browse the repository at this point in the history
…242)

close #162 close #170
  • Loading branch information
vthinkxie committed Sep 7, 2017
1 parent 4b5ea54 commit 94bac1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/carousel/nz-carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down

0 comments on commit 94bac1b

Please sign in to comment.