From 87b172cb6ea0c7377c80fa01c196835cbda75ce7 Mon Sep 17 00:00:00 2001 From: skydoves Date: Sat, 31 Aug 2024 13:27:18 +0900 Subject: [PATCH] Remove the elevation paddings --- balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt b/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt index 86d8d51d..05d0a026 100644 --- a/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt +++ b/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt @@ -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)) } } }