Open adesentenac opened 1 month ago
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, ) }
Instead in that case, the ScaleBar should be end aligned and it should grow towards the start as needed.
Environment
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:
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