If I have this ```Box { Image(contentScale = Fi...
# compose
d
If I have this
Copy code
Box {
  Image(contentScale = FillBounds, painter = painterResource(R.drawable.myPng))
  Content() // can by of various height depending on the children
}
How do I make the image fill the same height as
Content()
. Currently
Image
gets only as big as its resource, ignoring FillBounds flag
f
Try
Modifier.matchParentSize()
on the image
Size the element to match the size of the Box after all other content elements have been measured
d
awwesome, thank you!
🙌 1