Skip to content

Commit

Permalink
fix fullscreen sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed May 21, 2024
1 parent d4ba7f4 commit b2b902e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,12 @@ private fun StandardBottomSheet(
null
else sheetSize.height - value.detent.calculate(density, layoutHeight)

is CupertinoSheetValue.Expanded -> sheetSize.height -
(sortedAnchors.lastOrNull()?.calculate(density, layoutHeight) ?: 0f)
is CupertinoSheetValue.Expanded -> {

val height = sortedAnchors.lastOrNull()
?.calculate(density, layoutHeight) ?: sheetSize.height.toFloat()
(sheetSize.height - height ).coerceAtLeast(0f)
}
is CupertinoSheetValue.Hidden -> layoutHeight

else -> null
Expand Down

0 comments on commit b2b902e

Please sign in to comment.