We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a7f628 + 76116cb commit 504873cCopy full SHA for 504873c
ui/src/androidMain/kotlin/kiwi/orbit/compose/ui/controls/TopAppBar.kt
@@ -182,7 +182,7 @@ internal fun Modifier.scrollBehaviorLayout(
182
if (scrollBehavior.state.heightOffsetLimit != heightOffsetLimit) {
183
scrollBehavior.state.heightOffsetLimit = heightOffsetLimit
184
}
185
- val height = placeable.height + scrollBehavior.state.heightOffset.roundToInt()
+ val height = (placeable.height + scrollBehavior.state.heightOffset.roundToInt()).coerceAtLeast(0)
186
layout(placeable.width, height) {
187
placeable.place(0, height - placeable.height)
188
0 commit comments