Skip to content

Commit

Permalink
fix(module: carousel): fix vertical mode width error. (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guoyuanqiang authored and fisherspy committed Jun 21, 2019
1 parent 7dd77ba commit b0ca5ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ export class CarouselSlideComponent {
top;
@HostBinding('style.margin')
margin;
@HostBinding('style.overflow')
overflow = 'hidden';
}
2 changes: 1 addition & 1 deletion components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export class CarouselComponent implements AfterViewInit, OnDestroy {
this.cellSpacing;
this.style = {
height: this._currentSlideHeight + 'px',
width: this.items.length * this._rationWidth + 'px',
width: this.vertical ? this._currentSlideWidth + 'px' : this.items.length * this._rationWidth + 'px',
transform: this.vertical
? `translate3d(0px, ${positionOffset}px, 0px)`
: `translate3d(${positionOffset}px, 0px, 0px)`,
Expand Down

0 comments on commit b0ca5ba

Please sign in to comment.