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

Method updatePosition

src/material/menu/menu-trigger.ts:139–141  ·  view source on GitHub ↗

* Updates the position of the menu to ensure that it fits all options within the viewport.

()

Source from the content-addressed store, hash-verified

137 * Updates the position of the menu to ensure that it fits all options within the viewport.
138 */
139 updatePosition(): void {
140 this._overlayRef?.updatePosition();
141 }
142
143 ngAfterContentInit() {
144 this._handleHover();

Callers 2

_updatePositionMethod · 0.45
menu.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected