https://kotlinlang.org logo
Title
k

Kulwinder Singh

01/24/2022, 8:51 AM
Hi, I’m unable to position Popup
DropdownMenu
using
offset
property. I have tried to use
Modifier.onGloballyPositioned{}
but not getting expected results, How i should position Popup menu at depending on other view ?
f

FunkyMuse

01/24/2022, 8:52 AM
Try onSizeChanged as a modifier instead of onGloballyPositioned
k

Kulwinder Singh

01/24/2022, 9:01 AM
But onSizeChanged is only giving
width
and
height
@FunkyMuse how can i get position
t

tylerwilson

01/24/2022, 2:18 PM
I have the same issue - it works to a point, then just goes to the bottom of the view. I just kind of gave up, hoping it might be fixed in future versions…
z

Zach Klippenstein (he/him) [MOD]

01/24/2022, 2:43 PM
Can you post your code and a screenshot or video screen capture?