Thread
#compose
    Big Chungus

    Big Chungus

    1 year ago
    Is it possible to get parent Box width?
    Adam Powell

    Adam Powell

    1 year ago
    For what purpose? The optimal answer will vary based on whether you want to alter the composition itself vs. change layout or drawing based on that information.
    Big Chungus

    Big Chungus

    1 year ago
    I basically have a box with textfield and another box inside. I want inner box to be of x width (set by me) and match textField height (and in turn parent box's)
    Piotr Prus

    Piotr Prus

    1 year ago
    Can you post an image to visualise it? 🙂
    Adam Powell

    Adam Powell

    1 year ago
    https://developer.android.com/codelabs/jetpack-compose-layouts#9 might be relevant but agreed, a quick sketch might help visualize it
    Big Chungus

    Big Chungus

    1 year ago
    IntrinsicSize was exactly what I needed