Skip to content

Commit

Permalink
Fix dialog confirm/dismiss button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
StylianosGakis committed Nov 25, 2024
1 parent 6caeae8 commit b4c84b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,11 @@ private fun SmallHorizontalPreferringButtons(
maxOf(confirmButtonPlaceable.height, dismissButtonPlaceable.height)
}
layout(layoutWidth, layoutHeight) {
dismissButtonPlaceable.place(0, 0)
if (doNeedSecondLine) {
confirmButtonPlaceable.place(0, dismissButtonPlaceable.height + spaceBetween.roundToPx())
confirmButtonPlaceable.place(0, 0)
dismissButtonPlaceable.place(0, confirmButtonPlaceable.height + spaceBetween.roundToPx())
} else {
dismissButtonPlaceable.place(0, 0)
confirmButtonPlaceable.place(dismissButtonPlaceable.width + spaceBetween.roundToPx(), 0)
}
}
Expand Down

0 comments on commit b4c84b3

Please sign in to comment.