Alexander Maryanovsky
03/11/2023, 9:48 PMephemient
03/11/2023, 9:53 PMModifier.size(0.dp).wrapContentSize(unbounded = true)
(untested, but I think something like that may work)Alexander Maryanovsky
03/11/2023, 9:56 PMColumn(verticalArrangement = Arrangement.spacedBy(100.dp)
you will definitely see its effect.Ian Lake
03/12/2023, 12:56 AMPopup
is independent from the rest of the composition: https://developer.android.com/reference/kotlin/androidx/compose/ui/window/package-summary#Popup(androidx.compose.ui.A[…]Properties,kotlin.Function0)Alexander Maryanovsky
03/12/2023, 7:31 AMPopup
. The reason for this question is me trying to address this issue: https://github.com/JetBrains/compose-multiplatform/issues/2729
But looking at the Android code, it seems to suffer from the same problem, because AndroidPopup
emits the same empty layout whose purpose is to get the parent’s position: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]android.kt;drc=82abb7ed0792545abb32c5a3ae7a12051aed1556;l=309ephemient
03/12/2023, 10:20 PMAlexander Maryanovsky
03/13/2023, 10:45 AMLocalCoordinates
ephemient
03/13/2023, 5:21 PMLayout(content = {
Foo()
LocalCoordinates
Bar()
}, measurePolicy = { measureables, constraints ->
// custom code
I don't think you can observe the coordinates it would be laid out at, without potentially affecting layoutAlexander Maryanovsky
03/13/2023, 5:27 PMmyanmarking
03/13/2023, 10:43 PM