I have a dynamic `popup`, and I'm struggling to fi...
# compose
a
I have a dynamic
popup
, and I'm struggling to find a way to know what is the start point(x) of this
popup
relative to the whole window, any hints?
The popup is the blue rectangle and the its parent in Grey, I want to know the parent x when the popup x = 0
r
Modifier.onPlaced
or
Modifier.onGloballyPositioned
a
There is no modifier parameter in popup since I'm using
popupPositionProvider
to position the popup
l
PopupPositionProvider.calculatePosition
will give you
anchorBounds
which contains the coordinate of the parent component in the window
a
anchorBounds
gives me the bound of the popup's parent, but I want the point of intersection between them