Allow percentages for padding in autolayouts

In the new autolayout, you can use absolute numbers for padding. However, it would be really beneficial to be able to use percentages sometimes instead. I can see there have been previous posts about this but they are closed, therefore I cannot vote for them.

3 Likes

Hi there,

Thank you for your feedback! It’s always great to hear how others will react to ideas, so let’s see how this idea plays out.

Thanks,
Toku

1 Like

I think it would be a great idea ! You can use percentages in CSS and it’s very used by devs, I think it will improve communication and efficiency between designers and devs !

3 Likes

Hi all!

At my job, I create a lot of interfaces for completely different industries, these are both small and large projects, and very often I created a lot of variables for different screen sizes. Then every time we argue with the frontend because it is quite long and sometimes difficult to support all the variables. And I even agree with him, if it were possible to set sizes and margins not in pixels but in percentages, this would greatly simplify and, most importantly, speed up the work of both the designer and the front-end developer. You can create truly flexible interfaces.

100%, as in html, will be calculated from the container. We already have auto layout, we just need to add a toggle in the auto layout settings to switch to % (or just have the same option as for line height by default). And then all objects inside auto layout can be specified with % instead of px. And in dev mode, the developer will receive the result in % and will not have to sit and calculate (or I will do it instead :sweat_smile:) and the result will be a truly responsive interface

1 Like