Flex grid layout

Hi, I have a question about flexlayout: can it resize components but keeping the same width for column? I would like that when an element is moved to a new row, it has the same width of the first element of that column. Also I would prefer to have as height of the element of the first row the max height available, compatible with min/max values.

Only way that I have found is to use protoUI and $setSize as method but if I use ui.flexlayout as model I have some problems to resize the height when page loads for the first time. In that case, “resizeChildren()” only works but it takes too much (maybe it creates a loop with $setSize). Should I start from ui.layout for protoUI instead?

Many thanks in advance