Skip to content

Commit

Permalink
Merge pull request #691 from skydoves/fix/elevation-paddings
Browse files Browse the repository at this point in the history
Remove the elevation paddings
  • Loading branch information
skydoves authored Aug 31, 2024
2 parents 3f2a427 + 87b172c commit 608b835
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 608b835

Please sign in to comment.