Skip to content

Improper positioning when moving between screens with different densities #326

@sproctor

Description

@sproctor

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:


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions