Hi there,
I would like to know if there is a way to specify proportions to auto-layout? For example, take a horizontal auto-layout, and specify the left part should take 70% of the width, and keep the remaining 30% for the right part.
Thanks.
Hi there,
I would like to know if there is a way to specify proportions to auto-layout? For example, take a horizontal auto-layout, and specify the left part should take 70% of the width, and keep the remaining 30% for the right part.
Thanks.
To my knowledge, no, and that would be a great feature.
Some exceptions:
There might be some other ways to achieve this but not that Iām currently aware of.
I just had a similar need an hour ago. I have a hybrid solution: I have a large container with two containers inside and I wanted to make them 30%-70% width. I set one inner container to be āfill containerā and had to calculate a fixed width on the other (eg: 30% of the parent width). Figma will do percentages on the existing width. So, I selected the smaller inner container, set to be the width of the parent container (eg: 1000), and then selected the width again and typed ā30%ā in place of the ā1000ā. Figma will do the math for ya. When you resize the parent, unfortunately, youāll need to adjust the width of that one container with fixed width, but the other will be elastic.
Although, it would be rad if we could set an actual percentage like in flexbox.
Do they need to be wrapped in a single frame? Otherwise Iād just use two frames that takes up 30% and 70% respectively, wrap them in a frame and have them use fixed size and constrain to scale.
Thatās interesting. It works, but you lose auto-layout, or did I miss something?
The 30%, 70% frames can still utilize autolayout.
Itās always easier to create something when you know what it is youāre creating, and since Iām not 100% sure what it is youāre trying to do it might be I who has missed something
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.