Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScaleBar is not correctly aligned when using an End alignment #2492

Open
adesentenac opened this issue Oct 11, 2024 · 0 comments
Open

ScaleBar is not correctly aligned when using an End alignment #2492

adesentenac opened this issue Oct 11, 2024 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@adesentenac
Copy link

adesentenac commented Oct 11, 2024

Environment

  • Android OS version: 15 (AP31.240617.015)
  • Devices affected: Pixel 7a
  • Maps SDK Version: 11.7.0

Observed behavior and steps to reproduce

When using the ScaleBar (with Compose) with an End alignment (e.g. TopEnd), the ScaleBar is not correctly aligned at the end, because it seems to reserve space to grow at the end.

Using the following configuration:

scaleBar = {
    ScaleBar(
        modifier = Modifier.background(Color.Magenta),
        alignment = Alignment.TopEnd,
    )
}

Expected behavior

Instead in that case, the ScaleBar should be end aligned and it should grow towards the start as needed.

Additional links and references

image

@adesentenac adesentenac added the bug 🪲 Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant