Reproducer here: https://github.com/sproctor/ComposeBug/tree/dpi-change-bug
The text should stay to the right of the gray box.
The measurer does mention that DPI can change. I think this would cause a configuration change on Android and recreate the activity, so it wouldn't be a problem. On desktop, this doesn't happen.
My first intuition is that these lines need to be keyed to the density:
|
val measurer = remember { Measurer(density) } |
|
val measurer = remember { Measurer(density) } |
Reproducer here: https://github.com/sproctor/ComposeBug/tree/dpi-change-bug
The text should stay to the right of the gray box.
The measurer does mention that DPI can change. I think this would cause a configuration change on Android and recreate the activity, so it wouldn't be a problem. On desktop, this doesn't happen.
My first intuition is that these lines need to be keyed to the density:
constraintlayout-compose-multiplatform/compose/src/commonMain/kotlin/androidx/constraintlayout/compose/ConstraintLayout.kt
Line 420 in 07c8cb3
constraintlayout-compose-multiplatform/compose/src/commonMain/kotlin/androidx/constraintlayout/compose/ConstraintLayout.kt
Line 802 in 07c8cb3