Aspect Ratio with two rectangles

720 Views Asked by At

This is probably simpler that I'm making it (it would have to be), but I'm stuck and don't even quite know how to language this.

Imagine I have two boxes; one has a width of 3/4 of the whole, and the other is the remaining 4th. They are side by side and initially have 0 height.

I fill box-1 (3/4) box with an object that is 100% wide and who's height is determined based on aspect ratio. So box-1 stretches to the height of this object and keeps it same width. Box-2 still has the same width (1/4th of the whole) and zero height. Using aspect ratio I want to create an object that will fill box-2 and match the height of box-1, but I can't figure out how to calculate said aspect ratio.

Specifically - the aspect ratio of the item in box-1 is currently 4.5:1 and using trial and error I got the heights to match with ~1.6:1 in box-2; but I have no idea if that is reliable or if it will work consistently.

Any help?

A Drawing: enter image description here