Skip to main content
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?


Ludwig_T

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.

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.

View original

6 replies

Ludwig_T
  • Author
  • New Member
  • 39 replies
  • 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
  • Former Community Manager
  • 1019 replies
  • Answer
  • 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
  • Author
  • New Member
  • 39 replies
  • 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
  • 1019 replies
  • 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
  • Author
  • New Member
  • 39 replies
  • September 26, 2023

Voting for it now, thank you @Josh



Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings