Enode — API Reference
    Preparing search index...

    Function placeAnchoredMenu

    • Places a menu under its button, or over it when it does not fit under it and there is more room above. It is as wide as width (never narrower than the button, never wider than the bounds) and starts at the button's left edge (align: "start") or ends at its right edge ("end", for a button at the right of a row), kept inside the bounds.

      Parameters

      • anchor: {
            align?: "start" | "end";
            anchor: { bottom: number; left: number; right: number; top: number };
            bounds: HBounds;
            contentHeight: number;
            gap?: number;
            insetTop?: number;
            margin?: number;
            viewportHeight: number;
            width: number;
        }

        The button's rect.

      Returns AnchoredMenuPlacement