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

Method _updateElementSize

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

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

()

Source from the content-addressed store, hash-verified

407
408 /** Updates the size of the overlay element based on the overlay config. */
409 private _updateElementSize() {
410 if (!this._pane) {
411 return;
412 }
413
414 const style = this._pane.style;
415
416 style.width = coerceCssPixelValue(this._config.width);
417 style.height = coerceCssPixelValue(this._config.height);
418 style.minWidth = coerceCssPixelValue(this._config.minWidth);
419 style.minHeight = coerceCssPixelValue(this._config.minHeight);
420 style.maxWidth = coerceCssPixelValue(this._config.maxWidth);
421 style.maxHeight = coerceCssPixelValue(this._config.maxHeight);
422 }
423
424 /** Toggles the pointer events for the overlay pane element. */
425 private _togglePointerEvents(enablePointer: boolean) {

Callers 2

attachMethod · 0.95
updateSizeMethod · 0.95

Calls 1

coerceCssPixelValueFunction · 0.90

Tested by

no test coverage detected