MCPcopy Index your code
hub / github.com/angular/components / _getOverlayPositions

Method _getOverlayPositions

src/cdk/menu/menu-trigger.ts:298–305  ·  view source on GitHub ↗

Get the preferred positions for the opened menu relative to the menu item.

()

Source from the content-addressed store, hash-verified

296
297 /** Get the preferred positions for the opened menu relative to the menu item. */
298 private _getOverlayPositions(): ConnectedPosition[] {
299 return (
300 this.menuPosition ??
301 (!this._parentMenu || this._parentMenu.orientation === 'horizontal'
302 ? STANDARD_DROPDOWN_BELOW_POSITIONS
303 : STANDARD_DROPDOWN_ADJACENT_POSITIONS)
304 );
305 }
306
307 /**
308 * Subscribe to the MenuStack close events if this is a standalone trigger and close out the menu

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected