Figma Support Forum

Is it possible to use auto layout to scale a container but keep its ratio intact?

If it is possible, I can’t think how to do it. Here are some screens for context…

I want the grey box to keep its aspect ratio across different frame sizes. I have an image that needs to be fully displayed.

Any help appreciated, thanks!

1 Like

Yes sure, please check this amazing work by @chudoloo

2 Likes

Well I can now see why I did not think of that myself! That genuinely is genius. Thank you for sharing!

1 Like

Thanks! Team effort w/ @Vitalii_Sologub! Here’s my source.

2 Likes