Skip to main content
Question

Scale with height only, keep proportions

  • January 21, 2022
  • 1 reply
  • 718 views

Dirk

I’m trying to create something that I feel should be fairly simple, yet I’m not able to figure out the constraints and layers.

Let’s say I have a parent frame that can become wider and/or taller. Inside is a rectangle.

What I need is that the rectangle will always match the height of the parent frame, while keeping its proportions. AND always staying horizontally centered (equal spacing left and right).

  • Increasing the height of the parent frame will increase the height and the width of the rectangle.
  • Increasing the width of the parent frame will only add space left and right of the rectangle.

Any help would be much appreciated!

This topic has been closed for comments

1 reply

  • 0 replies
  • February 20, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


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