spxbhuhb / adaptive

Consolidated full-stack application development library for Kotlin
https://adaptive.fun
Apache License 2.0
3 stars 0 forks source link

Double for loop does not work without inner fragment #24

Closed toth-istvan-zoltan closed 3 months ago

toth-istvan-zoltan commented 3 months ago

This doesn't work:

for (v in Alignment.entries) {
    for (h in Alignment.entries) {
        rowAlign(AlignItems(v, h))
    }
}

This does:

for (v in Alignment.entries) {
    column {
        gap(10.dp)
        for (h in Alignment.entries) {
            rowAlign(AlignItems(v, h))
        }
    }
}
toth-istvan-zoltan commented 3 months ago

Was a bug in the structural containers.