Skip to content

Commit

Permalink
fix(module: carousel): fix carousel style int other content error (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guoyuanqiang authored and fisherspy committed Sep 14, 2019
1 parent 7350600 commit 004e4e0
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 @@ -416,7 +416,7 @@ export class CarouselComponent implements AfterViewInit, OnDestroy {
this.cellSpacing;
this.style = {
height: this._currentSlideHeight + 'px',
width: this.vertical ? this._currentSlideWidth + 'px' : this.items.length * this._rationWidth + 'px',
width: '100%',
transform: this.vertical
? `translate3d(0px, ${positionOffset}px, 0px)`
: `translate3d(${positionOffset}px, 0px, 0px)`,
Expand Down

0 comments on commit 004e4e0

Please sign in to comment.