What are the diffs between `coordinates.positionIn...
# compose
a
What are the diffs between
coordinates.positionInRoot()
and
coordinates.positionInParent()
?
b
There is no diff, those two are literally the exact same text. Did you mean to paste in a different function?
a
Sorry for that, Edited done.
d
Hmm, the method names are pretty descriptive I think. Unless you don't know what "root" means?
a
Actually I Logged the y coordinate for each one like:
Copy code
.onGloballyPositioned { coordinates ->
    coordinates.positionInRoot().y
    coordinates.positionInParent().y
}
And they have different values
k
Parent is your immediate parent. Root is the top-level container of the window. So they are going to be different in most cases.
1