Vertical Layout: auto-expand first row to fill height

Hi,

Say I have a vertical layout group with 2 rows and following settings.

What can I change to make row1 auto expand to fill any height, while making sure row2 is a fixed height, under any screen ratio?

Or is it not possible with vertical layout group and I have to avoid it for this case?

3368034--263964--Screen Shot 2018-01-25 at 22.10.39.png

Try ticking Child Controls Size > Height.

On Row1, add a Layout Element, and tick Flexible Height.

On Row2, add a Layout Element and set Min Height.

3 Likes

It works!

Though strangely I can’t just use flexible height = 1, even though doc claims it’s relative, I need to set it to my desired height in order to get the right split (in both target resolution and other aspect ratios).

Hmm, that’s strange. I thought Flexible Height only had two settings: zero and non-zero. I wonder if some other settings on Layout Element(s) or the Vertical Layout Group are affecting your setup.