Figma Support Forum

Fit elements to container in auto layout

I use auto layout often, but the default uni-directional arrangement of elements forces me to nest as many counter auto layout frame as rows/columns I want in my gallery.

Let’s say that I want to create a gallery of cards that’s 2 x 2 using auto layout:

image

This is how I would need to structure my gallery:

image

Wouldn’t it be better to add an option to fit elements in the auto layout frame so that it creates the second row automatically?

image

image

1 Like