Figma Support Forum

True Aspect Ratio Lock

Can we get a true aspect ratio lock when the ‘Constrain Proportions’ is on?WX20210123-114719@2x A true aspect ratio lock means two things:

  1. When dragging on a node with ‘constrain proportions’, its width and height always stay in their original ratio no matter which direction you drag it.
  2. When resizing on the parent of a node with ‘constrain proportions’ that happens to be constrainedWX20210123-112532@2x, the node takes on the smallest of its supposed width and height, and calculates its ratio accordingly.

This would be so very helpful to polygon shapes that want to stay in that shape. Consider a spider chart. When you resize its parent, you don’t want the ‘spider net’ to squish squash; neither will you want a doughnut to turn into an oval.

*Resizing of the node’s parent layer is inevitable if you need responsive designs.

14 Likes

I feel like this is a must-have feature as it has been quite an issue in my project for me… especially being somewhat new to figma.

I’ve seen workarounds with adding a line at an angle using responsive layout, but it’s just a workaround and has quite a few limits.

3 Likes

Exacto!

2 Likes

People work with images and this is super necessary in those cases. If I set my image container to a 16:9 aspect ratio when it’s 160x90px, I’d obviously expect it to be 320x180px when I scale it to twice the width, not 320x90px.

6 Likes

A big +1 from our team as well.

3 Likes

Huge Huge +1

2 Likes

Aspect ratio lock needed in auto layout and constraints, so block does not change proportions during scaling.

There is nothing to add here…

3 Likes

Agreed, have this problem with SVGs in an auto layout. Sometimes have to resort to images, which makes hand off not as easy because devs should be using the SVG in code. Also have certain UI elements like charts I want to show in designs and the only way for them not to break is to copy as images which then means you lose the ability to inspect etc. Leads to a lot of busy work to find other means of communicating to engineers!

Incredibly important feature that’s missing! Are there any plans to add this?

This is critical for responsive components and is a frequent barrier for the team, is this on the roadmap @Figma ?

1 Like

It’d be great if there was a toggle I could check that would keep the same aspect ratio for a component inside auto layout. Meaning if the width changes, so does the height while keeping the same aspect ratio.

Hi everyone, I’ve made a tutorial on how to achieve true aspect lock with just 1 AL Frame, I discovered it two months back and have put it to the test, it works perfectly, 100% bug-free, → Check it out

2 Likes

It is not “true aspect” lock. I see it still crops or lets background to be seen at some aspect ratios. Am I doing it wrong? Also almost always brakes if you make it a component.

Okay, It is the closest to true aspect lock Figma lets you achieve, let’s put it that way, and for your second question, I haven’t shared publicly how this works on components, but it is quite easy and works the same way, it just needs one bit of additional work. But let me provide some context:
https://vimeo.com/567304127