Thread
#compose
    Hitanshu Dhawan

    Hitanshu Dhawan

    1 year ago
    Hello, I updated* the compose version from 1.0.0-alpha01 to 1.0.0-alpha05 and my component which was made using ConstraintLayout seems to be broken. More on this thread.
    For example, here is a list of same views but it is behaving different for different indexes.
    There seems to be an issue with the z-index of children of ConstraintLayout.
    Is anyone else facing this issue? or maybe I’m missing something?
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    Yea I noticed that too, i think it's reversed. Probably related to the change where the order of place calls determines the z order.
    Halil Ozercan

    Halil Ozercan

    1 year ago
    I was also working on an animation where I needed to draw some content on top of a button, using Box as the parent. Finally I gave up and ended up using zIndex(10000)
    Hitanshu Dhawan

    Hitanshu Dhawan

    1 year ago
    @Zach Klippenstein (he/him) [MOD] in 1.0.0-alpha01 the last UI which was emitted would come on top of others, this logic seems to be changed in 05. Also, it is not consistent, the same UI is laid out differently/randomly as seen on the screenshot.
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    I am not sure what the constraint layout composable is doing under the hood, but using place calls to specify z order is a new feature in alpha05, it's in the release notes.
    We should definitely file a bug for this, I didn't have time to file it when I noticed it but can do next week, unless you beat me to it 😉
    Andrey Kulikov

    Andrey Kulikov

    1 year ago
    @Mihai Popa