We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b6730 commit b7dc6c6Copy full SHA for b7dc6c6
src/material/slider/slider.ts
@@ -573,9 +573,8 @@ export class MatSlider
573
574
/** Stores the slider dimensions. */
575
_updateDimensions(): void {
576
- const rect = this._elementRef.nativeElement.getBoundingClientRect();
577
- this._cachedWidth = rect.width;
578
- this._cachedLeft = rect.left;
+ this._cachedWidth = this._elementRef.nativeElement.offsetWidth;
+ this._cachedLeft = this._elementRef.nativeElement.getBoundingClientRect().left;
579
}
580
581
/** Sets the styles for the active portion of the track. */
0 commit comments