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

Method _updateWidthInactive

src/material/slider/slider-input.ts:534–540  ·  view source on GitHub ↗

* Sets the slider input to disproportionate dimensions to allow for touch * events to be captured on touch devices.

()

Source from the content-addressed store, hash-verified

532 * events to be captured on touch devices.
533 */
534 _updateWidthInactive(): void {
535 this._hostElement.style.padding = `0 ${this._slider._inputPadding}px`;
536 this._hostElement.style.width = `calc(100% + ${
537 this._slider._inputPadding - this._tickMarkOffset * 2
538 }px)`;
539 this._hostElement.style.left = `-${this._slider._rippleRadius - this._tickMarkOffset}px`;
540 }
541
542 _updateThumbUIByValue(options?: {withAnimation: boolean}): void {
543 this.translateX = this._clamp(this._calcTranslateXByValue());

Callers 9

initPropsMethod · 0.95
_onPointerUpMethod · 0.95
_onPointerUpMethod · 0.45
_updateSiblingMethod · 0.45
_updateMinRangeMethod · 0.45
_updateMaxRangeMethod · 0.45
_updateStepRangeMethod · 0.45
_onDirChangeRangeMethod · 0.45
_onResizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected