Can someone quickly guide me to how to set a max h...
# compose
s
Can someone quickly guide me to how to set a max height limit to a composable, what I want is to have it wrap content height, but as soon as the content overflow certain height I want to set it's height to an upper bound not however it takes
z
s
Oh thanks, bdw is there a way to get content height in dp to use in this as min height?
a
you shouldn't need to, the min and max only set bounds. Content will generally size itself as small as it can without going below the minimum. (Unless it's been additionally modified with a
.fillMaxHeight
or something similar)
s
Awesome, thanks