Skip to content

Commit

Permalink
fix(module: slider): fix handle transform in vertical mode (#4939)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell authored Apr 14, 2020
1 parent 9224240 commit 6fba78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/slider/handle.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class NzSliderHandleComponent implements OnChanges {
private updateStyle(): void {
this.style = {
[this.vertical ? 'bottom' : 'left']: `${this.offset}%`,
transform: this.vertical ? null : 'translateX(-50%)'
transform: this.vertical ? 'translateY(50%)' : 'translateX(-50%)'
};
this.cdr.markForCheck();
}
Expand Down

0 comments on commit 6fba78d

Please sign in to comment.