Aspect ratio is being ignored

I have an autolayout with a fixed height and width that adjusts to the size of the content.

It contains an image with a fixed aspect ratio (if I change the height, the width changes proportionally).

Problem: when I set the height to fill, the aspect ratio doesn’t work and the photo is distorted.

Am I misunderstanding the logic, or is this a bug?

I need to create cards of the same height but different widths because they contain different photos.

Hello @kozeev,

I have to say this is expected. Frames don’t support the aspect ratio of the layers inside them when you make changes to the Frame. In this case, I’m afraid that you’ll have to rely on resizing the image manually.

This is a feature we’re aware of (we’ve seen it reported in this forum before) and I’m adding your case to our internal ticket, so our Product team is aware.

Thanks for reporting!

1 Like