Skip to content

Commit 3d61f9d

Browse files
committed
chore(bill): only render waves on bottom half
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 85cf2aa commit 3d61f9d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • app/src/main/java/com/getcode/view/main/bill

app/src/main/java/com/getcode/view/main/bill/CashBill.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private class CashBillGeometry(width: Dp, height: Dp) {
212212
val wavesPosition: Offset
213213
get() = Offset(
214214
x = (size.width.value * 0.5f),
215-
y = topStripHeight.value + securityStripSize.height.value + securityStripPosition.y.value
215+
y = (size.height.value * 0.5f)
216216
)
217217

218218
init {
@@ -293,11 +293,12 @@ internal fun CashBill(
293293
Image(
294294
modifier = Modifier
295295
.requiredWidth(geometry.globeWidth)
296-
.fillMaxHeight()
296+
.align(Alignment.BottomCenter)
297+
.height(geometry.wavesPosition.y.dp)
297298
.offset {
298299
IntOffset(
299300
x = geometry.wavesPosition.x.toInt(),
300-
y = geometry.wavesPosition.y.toInt(),
301+
y = 0
301302
)
302303
},
303304
contentDescription = null,

0 commit comments

Comments
 (0)