mapbox-maps-android
mapbox-maps-android copied to clipboard
ScaleBar is not correctly aligned when using an End alignment
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.