mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

ScaleBar is not correctly aligned when using an End alignment

Open adesentenac opened this issue 1 year ago • 0 comments

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 avatar Oct 11 '24 18:10 adesentenac