Skip to content
Snippets Groups Projects
Verified Commit 2fa1d7da authored by Sebastian's avatar Sebastian
Browse files

Fix problem on high-density devices with the positioning of the drawer

parent ac9e2021
No related branches found
No related tags found
1 merge request!277Fix problem on high-density devices with the positioning of the drawer
Pipeline #13200 passed
...@@ -49,7 +49,6 @@ import androidx.compose.ui.unit.Dp ...@@ -49,7 +49,6 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.IntOffset import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import org.briarproject.briar.desktop.ui.Constants.COLUMN_WIDTH import org.briarproject.briar.desktop.ui.Constants.COLUMN_WIDTH
import kotlin.math.roundToInt
/** /**
* State of the [InfoDrawer] composable. * State of the [InfoDrawer] composable.
...@@ -154,7 +153,7 @@ fun InfoDrawer( ...@@ -154,7 +153,7 @@ fun InfoDrawer(
.fillMaxHeight() .fillMaxHeight()
.requiredWidth(COLUMN_WIDTH) .requiredWidth(COLUMN_WIDTH)
.align(Alignment.CenterEnd) .align(Alignment.CenterEnd)
.offset { IntOffset(animatedOffset.value.roundToInt(), 0) }, .offset { IntOffset(animatedOffset.roundToPx(), 0) },
shape = drawerShape, shape = drawerShape,
color = drawerBackgroundColor, color = drawerBackgroundColor,
contentColor = drawerContentColor, contentColor = drawerContentColor,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment