File tree 1 file changed +2
-1
lines changed
ui/src/androidMain/kotlin/kiwi/orbit/compose/ui/controls
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import androidx.compose.ui.Alignment
24
24
import androidx.compose.ui.Modifier
25
25
import androidx.compose.ui.graphics.Brush
26
26
import androidx.compose.ui.graphics.Color
27
+ import androidx.compose.ui.layout.AlignmentLine
27
28
import androidx.compose.ui.layout.HorizontalAlignmentLine
28
29
import androidx.compose.ui.layout.Layout
29
30
import androidx.compose.ui.platform.LocalDensity
@@ -152,7 +153,7 @@ private fun ScaffoldLayout(
152
153
153
154
// Calculate the space for content and toast.
154
155
val actionFadeHeight = actionPlaceables.firstOrNull()?.get(ActionFadeLine )
155
- ?.takeIf { it >= 0 } ? : 0
156
+ ?.takeIf { it != AlignmentLine . Unspecified } ? : 0
156
157
val actionHeight = actionPlaceables.maxOfOrNull { it.height } ? : 0
157
158
158
159
// If there is fade, let's do not subtract it, we want the content to be shown below it.
You can’t perform that action at this time.
0 commit comments