Skip to content

Commit

Permalink
Remove the elevation paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Aug 31, 2024
1 parent 76f1962 commit 87b172c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,13 @@ public class Balloon private constructor(
val elevation = builder.elevation.toInt()
with(binding.balloonContent) {
when (builder.arrowOrientation) {
ArrowOrientation.START -> setPadding(paddingSize, elevation, paddingSize, elevation)
ArrowOrientation.END -> setPadding(paddingSize, elevation, paddingSize, elevation)
ArrowOrientation.START -> setPadding(paddingSize, 0, paddingSize, 0)
ArrowOrientation.END -> setPadding(paddingSize, 0, paddingSize, 0)
ArrowOrientation.TOP ->
setPadding(elevation, paddingSize, elevation, paddingSize.coerceAtLeast(elevation))
setPadding(0, paddingSize, 0, paddingSize.coerceAtLeast(elevation))

ArrowOrientation.BOTTOM ->
setPadding(elevation, paddingSize, elevation, paddingSize.coerceAtLeast(elevation))
setPadding(0, paddingSize, 0, paddingSize.coerceAtLeast(elevation))
}
}
}
Expand Down

0 comments on commit 87b172c

Please sign in to comment.