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

Method updatePosition

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

Updates the position of the overlay based on the position strategy.

()

Source from the content-addressed store, hash-verified

350
351 /** Updates the position of the overlay based on the position strategy. */
352 updatePosition(): void {
353 if (this._positionStrategy) {
354 this._positionStrategy.apply();
355 }
356 }
357
358 /** Switches to a new position strategy and updates the overlay position. */
359 updatePositionStrategy(strategy: PositionStrategy): void {

Callers 7

attachMethod · 0.95
overlay.spec.tsFile · 0.45
enableMethod · 0.45
enableMethod · 0.45

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected