https://kotlinlang.org logo
Title
e

Eric Ampire [MOD]

04/24/2023, 11:16 AM
Hey folk, I've noticed that while increasing the size of a
Box
or an
Image
inside a
Box(modifier = Modifier.fillMaxSize())
, the width or the height of the
Image
doesn't exceed the size of the parent layout, is there a way to prevent that behaviour without having to use
Modifier.scale()
?
a

Albert Chang

04/24/2023, 12:37 PM
Check the
contentScale
parameter of
Image
.
e

Eric Ampire [MOD]

04/24/2023, 11:13 PM
it doesn't solve the problem
e

efemoney

04/25/2023, 5:55 AM
Well it will if you give it a chance :blob-wink:
c

Colton Idle

04/25/2023, 12:48 PM
Do you have an example code that repros the problem? I'd like to try to help you figure it out. i had some weird image scaling problems last week. lol