Skip to content

Commit

Permalink
fix(material/slider): fix slider resize w/ transforms (#26044)
Browse files Browse the repository at this point in the history
* Fixes Issue #26043

(cherry picked from commit b7dc6c6)
  • Loading branch information
wagnermaciel committed Nov 26, 2022
1 parent 1641c3a commit c9a5474
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/material/slider/slider.ts
Expand Up @@ -573,9 +573,8 @@ export class MatSlider

/** Stores the slider dimensions. */
_updateDimensions(): void {
const rect = this._elementRef.nativeElement.getBoundingClientRect();
this._cachedWidth = rect.width;
this._cachedLeft = rect.left;
this._cachedWidth = this._elementRef.nativeElement.offsetWidth;
this._cachedLeft = this._elementRef.nativeElement.getBoundingClientRect().left;
}

/** Sets the styles for the active portion of the track. */
Expand Down

0 comments on commit c9a5474

Please sign in to comment.