Skip to content

Commit

Permalink
main screen controls should only inset system bars (not IME)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Nov 30, 2024
1 parent 4dcc78c commit 4b30199
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.absoluteOffset
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.foundation.layout.systemBars
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -215,7 +217,7 @@ fun MainScreen(

Column(Modifier
.fillMaxSize()
.safeDrawingPadding()
.windowInsetsPadding(WindowInsets.systemBars)
.onGloballyPositioned { pointerPinRects["frame"] = it.boundsInRoot() }
) {
Box(Modifier
Expand Down

0 comments on commit 4b30199

Please sign in to comment.