Skip to main content
Phil_Larsen
Active Member
August 2, 2023

Respect Size Constraints in Auto Layout

  • August 2, 2023
  • 4 replies
  • 990 views

On the dimensions of an object you can constrain the height and width so that if one changes the other proportionately does so. When these objects are in an auto layout, however, this constraint isn’t respected and the width and height won’t maintain the same aspect ratio. If the object is set to fill horizontally or fill vertically, it won’t scale properly.

I’d like the constraint set on the layers panel to be respected when objects resize in an auto-layout.

4 replies

January 22, 2024

I DESPERATELY need this answered as well

Figmate
January 24, 2024

Hi there, Thanks for sharing your thoughts!
I will bring this up with our internal team and we will consider it for future improvements.

In the mean time, there might be a plugin in our community that meets your requirements. Here are examples, but feel free to explore plugins on your own: https://www.figma.com/community/search?resource_type=plugins&sort_by=relevancy&query=Constraint&editor_type=all&price=all&creators=all

Also, I found something similar from the community members here: "Constrain proportions" should actually constrain proportions
Feel free to check!

Thank you,

April 4, 2024

yes, please. thank you

Mike_Stinson
June 13, 2024

Hey y’all, duplicating this comment on a few different issues. This plugin has successfully solved the problem for me: https://www.figma.com/community/plugin/1345084434204288101/fixed-aspect-ratio-frame