Thread
#compose
    s

    Shivam Sethi

    1 year ago
    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
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    s

    Shivam Sethi

    1 year ago
    Oh thanks, bdw is there a way to get content height in dp to use in this as min height?
    Adam Powell

    Adam Powell

    1 year ago
    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

    Shivam Sethi

    1 year ago
    Awesome, thanks