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

Method _updateElementSize

src/cdk/overlay/overlay-ref.ts:436–449  ·  view source on GitHub ↗

Updates the size of the overlay element based on the overlay config.

()

Source from the content-addressed store, hash-verified

434
435 /** Updates the size of the overlay element based on the overlay config. */
436 private _updateElementSize() {
437 if (!this._pane) {
438 return;
439 }
440
441 const style = this._pane.style;
442
443 style.width = coerceCssPixelValue(this._config.width);
444 style.height = coerceCssPixelValue(this._config.height);
445 style.minWidth = coerceCssPixelValue(this._config.minWidth);
446 style.minHeight = coerceCssPixelValue(this._config.minHeight);
447 style.maxWidth = coerceCssPixelValue(this._config.maxWidth);
448 style.maxHeight = coerceCssPixelValue(this._config.maxHeight);
449 }
450
451 /** Toggles the pointer events for the overlay pane element. */
452 private _togglePointerEvents(enablePointer: boolean) {

Callers 2

attachMethod · 0.95
updateSizeMethod · 0.95

Calls 1

coerceCssPixelValueFunction · 0.90

Tested by

no test coverage detected