Skip to content

Commit

Permalink
fix(module: carousel): fix carousel vertical mode error (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guoyuanqiang authored and fisherspy committed Mar 15, 2019
1 parent 3f8becd commit e9ae898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class CarouselComponent implements AfterViewInit, OnDestroy {
this.slideHeight = nativeElement.querySelector('carouselslide').clientHeight;
this._currentSlideHeight = this.slideHeight * this.slideWidth;
this._currentSlideWidth = nativeElement.clientWidth;
this._rationWidth = this.vertical ? this._currentSlideWidth : this._currentSlideWidth * this.slideWidth;
this._rationWidth = this.vertical ? this._currentSlideHeight : this._currentSlideWidth * this.slideWidth;
this._spaceWidth = ((this.vertical ? this.slideHeight : this._currentSlideWidth) - this._rationWidth) / 2;
}

Expand Down

0 comments on commit e9ae898

Please sign in to comment.