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

Method _updateElementSize

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

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

()

Source from the content-addressed store, hash-verified

417
418 /** Updates the size of the overlay element based on the overlay config. */
419 private _updateElementSize() {
420 if (!this._pane) {
421 return;
422 }
423
424 const style = this._pane.style;
425
426 style.width = coerceCssPixelValue(this._config.width);
427 style.height = coerceCssPixelValue(this._config.height);
428 style.minWidth = coerceCssPixelValue(this._config.minWidth);
429 style.minHeight = coerceCssPixelValue(this._config.minHeight);
430 style.maxWidth = coerceCssPixelValue(this._config.maxWidth);
431 style.maxHeight = coerceCssPixelValue(this._config.maxHeight);
432 }
433
434 /** Toggles the pointer events for the overlay pane element. */
435 private _togglePointerEvents(enablePointer: boolean) {

Callers 2

attachMethod · 0.95
updateSizeMethod · 0.95

Calls 1

coerceCssPixelValueFunction · 0.90

Tested by

no test coverage detected