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

Method updatePosition

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

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

()

Source from the content-addressed store, hash-verified

333
334 /** Updates the position of the overlay based on the position strategy. */
335 updatePosition(): void {
336 if (this._positionStrategy) {
337 this._positionStrategy.apply();
338 }
339 }
340
341 /** Switches to a new position strategy and updates the overlay position. */
342 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