From a51e7952c0b7e9609cf71507fd4e282dee2f1499 Mon Sep 17 00:00:00 2001 From: WooJin Kong Date: Sun, 4 Aug 2024 12:02:51 +0900 Subject: [PATCH] fix: Fix image not fill screen when zoomed --- .../kongjak/koreatechboard/ui/components/dialog/ImageDialog.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/kongjak/koreatechboard/ui/components/dialog/ImageDialog.kt b/app/src/main/java/com/kongjak/koreatechboard/ui/components/dialog/ImageDialog.kt index a21c210..1c053bf 100644 --- a/app/src/main/java/com/kongjak/koreatechboard/ui/components/dialog/ImageDialog.kt +++ b/app/src/main/java/com/kongjak/koreatechboard/ui/components/dialog/ImageDialog.kt @@ -1,6 +1,7 @@ package com.kongjak.koreatechboard.ui.components.dialog import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material3.CircularProgressIndicator import androidx.compose.runtime.Composable @@ -27,6 +28,8 @@ fun ImageDialog( properties = DialogProperties(usePlatformDefaultWidth = false) ) { Box( + modifier = Modifier + .fillMaxSize(), contentAlignment = Alignment.Center ) { val zoomState = rememberZoomState()