Skip to main content
Ludwig_T
New Member
July 25, 2023
Solved

Is there a way to constrain proportions of variants, so when instantiated you can set them to Fill the parent container without loosing the original aspect ratio?

  • July 25, 2023
  • 6 replies
  • 1213 views

Hello Figma world,
I’m making a video player component in Figma with a few variants for aspect ratios. I want users to be able to “Fill” their parent layout both Horizontally and vertically while preserving the proportions of the variant they have selected. In other words I want to lock the proportions of my variants.

I’m finding that it’s easy using contraints on basic frames but that both the “lock aspect ratio” and “Constraints” features are unavailable when working with instances and variants. So what can I do as a workaround?

Thank you kindly for any help with this.

This topic has been closed for replies.
Best answer by Josh

Hey @Ludwig_T I’ve been trying out a few things on this but at the moment I don’t think this is possible. I know a true aspect ratio lock is something that users have asked for in the past, and I’m happy to pass this idea along too.

6 replies

Ludwig_T
Ludwig_TAuthor
New Member
July 25, 2023

Update: I guess another way to solve this would be to have a FIT property in the H and V dropdown.

Josh
JoshSolution
Former Community Manager
July 25, 2023

Hey @Ludwig_T I’ve been trying out a few things on this but at the moment I don’t think this is possible. I know a true aspect ratio lock is something that users have asked for in the past, and I’m happy to pass this idea along too.

Ludwig_T
Ludwig_TAuthor
New Member
July 26, 2023

Thnk you kindly Josh that would be great! 😀 Should I create a feature suggestion as well in the community?

Josh
Former Community Manager
July 26, 2023

There’s this one here: "Constrain proportions" should actually constrain proportions

Feel free to add your vote and any additional comments/context there. 🙂

Ludwig_T
Ludwig_TAuthor
New Member
September 26, 2023

Voting for it now, thank you @Josh

April 28, 2024