Skip to content

Commit

Permalink
Add minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Dec 30, 2023
1 parent 8c4d827 commit 0c6bb9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private fun Track(
// To take into account the wave height in component overall height,
// and to prevent the extremes of the wave from being partially clipped,
// and to make sure proper component layout when waveHeight is 0.dp
.height(max(waveHeight, 48.dp))
.height(waveHeight.coerceAtLeast(48.dp))
) {
val isRtl = layoutDirection == LayoutDirection.Rtl
val sliderLeft = Offset(thumbPx, center.y)
Expand Down

0 comments on commit 0c6bb9f

Please sign in to comment.