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!