From c35b5811d09920edf0eede9fddf3430f6696de28 Mon Sep 17 00:00:00 2001 From: ganfra Date: Mon, 20 Apr 2026 15:14:10 +0200 Subject: [PATCH] Restore comment on StaticMapView --- .../io/element/android/features/location/api/StaticMapView.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/location/api/src/main/kotlin/io/element/android/features/location/api/StaticMapView.kt b/features/location/api/src/main/kotlin/io/element/android/features/location/api/StaticMapView.kt index 3ee0af35af..a61cbe1c24 100644 --- a/features/location/api/src/main/kotlin/io/element/android/features/location/api/StaticMapView.kt +++ b/features/location/api/src/main/kotlin/io/element/android/features/location/api/StaticMapView.kt @@ -58,6 +58,9 @@ fun StaticMapView( modifier: Modifier = Modifier, darkMode: Boolean = !ElementTheme.isLightTheme, ) { + // Using BoxWithConstraints to: + // 1) Size the inner Image to the same Dp size of the outer BoxWithConstraints. + // 2) Request the static map image of the exact required size in Px to fill the AsyncImage. BoxWithConstraints( modifier = modifier, contentAlignment = Alignment.Center