MCPcopy Create free account
hub / github.com/angular/components / _updateDimensions

Method _updateDimensions

src/material/slider/slider.ts:574–577  ·  view source on GitHub ↗

Stores the slider dimensions.

()

Source from the content-addressed store, hash-verified

572
573 /** Stores the slider dimensions. */
574 _updateDimensions(): void {
575 this._cachedWidth = this._elementRef.nativeElement.offsetWidth;
576 this._cachedLeft = this._elementRef.nativeElement.getBoundingClientRect().left;
577 }
578
579 /** Sets the styles for the active portion of the track. */
580 _setTrackActiveStyles(styles: {

Callers 3

ngAfterViewInitMethod · 0.95
_onResizeMethod · 0.95
_onPointerDownMethod · 0.80

Calls 1

getBoundingClientRectMethod · 0.80

Tested by

no test coverage detected