Hello, how can I find the coordinate of a componen...
# compose
n
Hello, how can I find the coordinate of a component inside root in pixels? I tried below but it is not working
Copy code
.onGloballyPositioned {
                    val rect = it.boundsInRoot()
                    onTitleEdgeMeasured(rect.top.roundToInt())
                }
Fixed using
boundsInParent
instead of
boundsInRoot
👍 1
👍🏼 1