Is there a way to make ListView / ScrollView change columns / rows with content size being updated ?

Hello,

I wanted to know if it would be possible that when the ListView / ScrollView resize, it’s content would change the number of column / items inside it automaticly ?

Just like that exemple :

(When you resize the view, the items change it’s column / rows to fit the items inside).

Right now I think I can manage to do it by code, but I think that’s FlexBox in web already does it so !

Thank you !

What the example shows is a side-effect of having padding and box-sizing=border-box. UIElements does not support box-sizing.

Using

.items {
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
.items .item {
flex: 1 0 auto;
min-width: 25%;
}

should achieve what you are looking for.