Skip to content

Commit

Permalink
Fixed #9792 - Knob not set sizes when using Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Jan 20, 2021
1 parent 1bd444d commit e6cd720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/knob/knob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const KNOB_VALUE_ACCESSOR: any = {
selector: 'p-knob',
template: `
<div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">
<svg viewBox="0 0 100 100" [style.width]="size" [style.height]="size" (click)="onClick($event)" (mousedown)="onMouseDown($event)" (mouseup)="onMouseUp($event)"
<svg viewBox="0 0 100 100" [style.width]="size + 'px'" [style.height]="size + 'px'" (click)="onClick($event)" (mousedown)="onMouseDown($event)" (mouseup)="onMouseUp($event)"
(touchstart)="onTouchStart($event)" (touchend)="onTouchEnd($event)">
<path [attr.d]="rangePath()" [attr.stroke-width]="strokeWidth" [attr.stroke]="rangeColor" class="p-knob-range"></path>
<path [attr.d]="valuePath()" [attr.stroke-width]="strokeWidth" [attr.stroke]="valueColor" class="p-knob-value"></path>
Expand Down

0 comments on commit e6cd720

Please sign in to comment.