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

Method _getSubmenuBounds

src/cdk/menu/menu-aim.ts:222–224  ·  view source on GitHub ↗

Get the bounding DOMRect for the open submenu.

()

Source from the content-addressed store, hash-verified

220
221 /** Get the bounding DOMRect for the open submenu. */
222 private _getSubmenuBounds(): DOMRect | undefined {
223 return this._pointerTracker?.previousElement?.getMenu()?.nativeElement.getBoundingClientRect();
224 }
225
226 /**
227 * Check if a reference to the PointerFocusTracker and menu element is provided.

Callers 1

_isMovingToSubmenuMethod · 0.95

Calls 2

getBoundingClientRectMethod · 0.80
getMenuMethod · 0.65

Tested by

no test coverage detected