Skip to main content

It would be really great if there was an option in an auto layout frame where the frame would wrap the objects to the next line. Like this. Objects would respect the padding set in the Auto layout.


Loom

I do believe that Figma should match HTML 100%, the way that Webflow does, by fully supporting CSS grid + Flexbox functionality, for at least two reasons:



  1. CSS Grid/Flexbox properties have been designed with maximum layout flexibility in mind, and they’ve been a god-sent since then.

  2. This would further reduce the gap between design and front-end development.


That said, I imagine this may not be an easy challenge for the Figma enginnering team. In a Nov 2020 post, they explain that autolayout was inspired by Flexbox, but after some testing, they decided to chose a compromise between a perfect match with Flexbox, and making it easy for people to use. It’s also to note that for optimal layouts, CSSs may need custom manipulations that go beyond a simple application of CSS grid/Flexbox techniques.


+1 from Bulgaria 🙂 the wrapping feature will solve so many problems


This plugin works well in a main component. but it pretty unreliable with overall auto-layout in variants.


+1 for this feature


+1 for auto-layout content wrapping. This would be huge!


+1 make the auto layout that much more magical… please!


Yes please! +1


omg, yes, please - if I could vote on an idea more than once I would seriously consider adding half my remaining votes to it.


I don’t actually think that the full capabilities of flex box would require too much complexity if some of the options are in the main UI and others are in the advanced menu where you can currently choose between packed/distributed, include/exclude borders, first/last on top stacking order and text baseline.


I’d put the following directly on the properties panel:



  • horizontal and vertical z-wrap options (as others have described above)

  • a field for the number of columns/rows along the horizontal/vertical


When the the horizontal/vertical resize of the container is “fixed”, contained items - which can have any resize option - are automatically wrapped at the specified number of columns/rows,


When the horizontal/vertical resize is set to “fill” and the advanced “Spacing mode” setting is “Packed” the same number is used and all contained items are set to “fill”. If the resize is still fill and spacing mode is changed to “Space between” then column/row count switches to “Auto” and the wrap is based on the width/height of the container frame and the width/height of the contained items. In this latter case, items set to “fill” will always fill up what remains of the width/height of the current row/column, forcing the next item into the following row/column. This does mean that if all items are set to “fill” the result devolves to a single column/row but that’s okay because, if the user wants them to be in multiple columns/rows they just have to switch back to the “Packed” spacing mode.


“justify-content” and “align-content” values are handled by the existing alignment square.


“row-gap” and “column-gap” are handled by showing both the horizontal and vertical “spacing between items” elements


“align-items” is on the advanced panel and only enabled when the horizontal or vertical z-wrap is selected. For the horizontal z-wrap, it uses the same three icons as text does for vertical alignment. For the vertical z-wrap, it uses the same icons as text does for horizontal alignment.



Needs to happen @Figma_Support


wen integration?


cmon guys, u can do it! 🙂 🙂


+1 please, much needed feature


+1 Figma is so feature-rich that I was surprised auto-layout didn’t work like CSS Flexbox / Grid


How is this not a thing yet?! Doesn’t everyone run into this problem every time they use auto layout?


+1 this would be great


+1 super time saver


+1 we need it @Figma_Support I just not understand why it have not been been added in Figma 2022 updayte but it’s okay


+1 on this feature. Having something like this would be a game changer.


+1 — wrapping functionality would be awesome!


+1 — agree 1000%. This is a key feature for creating fluid responsive components in figma.


+1, we need this key feature a lot.


Flex-wrap is a staple of any modern web design. This is desperately needed!


+1 we need this.


+1 Please provide this!! This should have been one of the first features of Auto Layout!!


+1!! Much needed


Reply