Skip to content

Commit

Permalink
debug: try Alignment.Center for modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Nov 20, 2024
1 parent 886e35d commit f108ca3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ fun MainScreen(
PointerPinButton(
onClick = onClickLocationPointer,
rotate = rotation.toFloat(),
modifier = Modifier.absoluteOffset(offset.x.pxToDp(), offset.y.pxToDp()),
modifier = Modifier.align(Alignment.Center),
//modifier = Modifier.absoluteOffset(offset.x.pxToDp(), offset.y.pxToDp()),
) { Image(painterResource(R.drawable.location_dot_small), null) }
}

Expand Down

0 comments on commit f108ca3

Please sign in to comment.