From 2fa1d7da25bddcea51ac9fb3dc5a10d16bfa947f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@mobanisto.de>
Date: Mon, 16 Jan 2023 15:50:32 +0100
Subject: [PATCH] Fix problem on high-density devices with the positioning of
 the drawer

---
 .../kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt b/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt
index e18b9d169a..742448af70 100644
--- a/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt
+++ b/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt
@@ -49,7 +49,6 @@ import androidx.compose.ui.unit.Dp
 import androidx.compose.ui.unit.IntOffset
 import androidx.compose.ui.unit.dp
 import org.briarproject.briar.desktop.ui.Constants.COLUMN_WIDTH
-import kotlin.math.roundToInt
 
 /**
  * State of the [InfoDrawer] composable.
@@ -154,7 +153,7 @@ fun InfoDrawer(
                 .fillMaxHeight()
                 .requiredWidth(COLUMN_WIDTH)
                 .align(Alignment.CenterEnd)
-                .offset { IntOffset(animatedOffset.value.roundToInt(), 0) },
+                .offset { IntOffset(animatedOffset.roundToPx(), 0) },
             shape = drawerShape,
             color = drawerBackgroundColor,
             contentColor = drawerContentColor,
-- 
GitLab