Konstantin Klassen
12/02/2024, 1:17 PMB in the coordinates space of Box?
Box(Modifier.fillMaxSize()) {
Column(Modifier.padding(left = 100.dp)) {
A()
B()
}
}
What I do is I get LayoutCoordinates of Box and B in their respective onGloballyPositioned callback and do the conversion once I have both of the LayoutCoordinates. There must be a better way.
I thought about using LookaheadScope inside Box, because that gives me lookaheadScopeCoordinates during the placement of B. Might be overkill though?Stylianos Gakis
12/02/2024, 2:20 PMStylianos Gakis
12/02/2024, 2:20 PMKonstantin Klassen
12/02/2024, 2:36 PMB could be any indirect child of Box deep down the treeJonathan
12/05/2024, 2:32 PMLayoutCoordinates.parentLayoutCoordinates does not give you exactly what you want.Konstantin Klassen
12/05/2024, 2:38 PMparentLayoutCoordines but I not sure how I would know when to stop traversingJonathan
12/05/2024, 7:57 PMKonstantin Klassen
12/05/2024, 10:46 PM