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

Method _onResize

src/material/slider/slider.ts:646–677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644 }
645
646 _onResize(): void {
647 if (!this._hasViewInitialized) {
648 return;
649 }
650
651 this._updateDimensions();
652 if (this._isRange) {
653 const eInput = this._getInput(_MatThumb.END) as _MatSliderRangeThumb;
654 const sInput = this._getInput(_MatThumb.START) as _MatSliderRangeThumb;
655
656 eInput._updateThumbUIByValue();
657 sInput._updateThumbUIByValue();
658
659 eInput._updateStaticStyles();
660 sInput._updateStaticStyles();
661
662 eInput._updateMinMax();
663 sInput._updateMinMax();
664
665 eInput._updateWidthInactive();
666 sInput._updateWidthInactive();
667 } else {
668 const eInput = this._getInput(_MatThumb.END);
669 if (eInput) {
670 eInput._updateThumbUIByValue();
671 }
672 }
673
674 this._updateTickMarkUI();
675 this._updateTickMarkTrackUI();
676 this._cdr.detectChanges();
677 }
678
679 /** Whether or not the slider thumbs overlap. */
680 private _thumbsOverlap: boolean = false;

Callers 1

_observeHostResizeMethod · 0.95

Calls 8

_updateDimensionsMethod · 0.95
_getInputMethod · 0.95
_updateTickMarkUIMethod · 0.95
_updateThumbUIByValueMethod · 0.80
_updateStaticStylesMethod · 0.80
_updateMinMaxMethod · 0.80
_updateWidthInactiveMethod · 0.45

Tested by

no test coverage detected