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.

65 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.

11 Likes

Exacto!

4 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.

17 Likes

A big +1 from our team as well.

6 Likes

Huge Huge +1

3 Likes

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

There is nothing to add here…

7 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?

3 Likes

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

4 Likes

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.

4 Likes

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

1 Like

We need to login to see that video. Other way to share?

Yes, please Figma-Team, can we have the aspect-ratio-lock behave like the OP suggested? As much as I love all the smart little details in Figma, this current behavior is an absolute strange oddity within all design software out there. Probably every other app does this right(er) than Figma.

When the lock is closed, the aspect ratio of an element should stay the same, no matter from which side or how it is scaled. When in an AL container and set to “Fill container”, the last chosen setting (horizontal or vertical) overrules any other setting. But elements should not be distorted when the lock is closed.

This seems so basic and after 1½ years of using Figma I still can’t figure out why you did it the way it is. And this can’t be that hard to implement, right? So Fimga-Team members, if you are reading this, please reconsider this thing and make it one of the smart details. I even give you all my thank-yous in advance… :sunglasses:

3 Likes

This is a missing feature to make truly responsive designs. A lot of websites and apps have a page with a grid of thumbnails with fixed aspect ratio. Currently there is no way to have these thumbnails keep their aspect ratio with auto layout, so the only way to do so is by using some tricks like this: https://www.figma.com/community/file/873125264217713781/Fixed-aspect-ratio-in-Figma-Auto-Layout

2 Likes

Problem is, 136 votes might not be enough for them to take action… :cry:
Is everybody else happy with the current behaviour then?

2 Likes

This seems to be a pretty important feature.

I’ve spent hours trying to figure out how to make an icon scale proportionally within a frame. Not sure if I should be …

  1. Relieved: I wasn’t stupidly overlooking this feature … since it doesn’t exist in Figma.
  2. Grateful: I could’ve spent hours more, looking for a feature that doesn’t exist in Figma.
  3. Concerned: that folks have, for a year and a half, been asking for a “pretty important” feature that still doesn’t exist in Figma.

I’ve worked with Sketch and XD and am a recent convert to Figma. Love it! But I’m surprised that the aspect lock feature is missing. Would be great to see that sometime soon. Thanks!

3 Likes