Source set: Common
class Custom(
val xCandidates: (anchorBounds: IntRect, windowSize: IntSize, menuSize: IntSize) -> IntList,
val yCandidates: (anchorBounds: IntRect, windowSize: IntSize, menuSize: IntSize) -> IntList,
) : MenuAnchorPosition
A custom positioning strategy
This allows for dynamic positioning logic that can adapt to the anchor's location on screen, the available window space, and the size of the menu content.
Please adjust xCandidates and yCandidates to the current LayoutDirection if needed.