Absolutesize of UIAspectRatio

Hello,
Today I started working on a new GUI. What I want to achieve that normally the GUI is displayed like this:


and after you clicked on select room like this
(red boxes are placeholders)
What I did is that the image is a sibling of the darker-grey frame, and the image height is determined by an aspectratioconstraint. But for the frame to be completely hidden, I would need to know the absolutesize of the image/uiaspectratio. How could I figure out the absolute size of the image?
By the way, I’m using a uilistlayout, so the image need to be in the frame for my idea to work; setting the frame inside the image wouldn’t work with the uilistlayout.

Thank you in advance!

Boele009

There should be an AbsoluteSize property that you can reference to get the image’s absolute size in pixels, if that helps.

That is the point, the UIAspectRatio doesn’t have that

I think his point is that the actual UI itself stores a readonly value called Absolute Size, which is the exact x pixel size and y pixel size of the ui on a screen.