I’m having more trouble than I feel like I should, trying to get my UI to adapt to displays with slightly different aspect ratios…here’s the situation:
- UI is built inside a root container with a resolution of 1080x1920 (HD in portrait)
- Client also wants it to work on similar portrait-but-not-HD resolutions/aspect ratios like 768x1024, 800x1280, etc.
- Setting the Container as the Window Op, it will scale and display properly (i.e. akin to “Fit Best” with all content visible and aspect ratio locked), and display black bars in the negative space
Here’s my goal: instead of empty black space, I’d like to be able to extend my background image and header background (whether color or image) instead of having black content.
As a first step, I’ve tried making my UI Container a child of another Container with the size set to the screen size and setting Children > Fit to Fit Best, but this mangles the layout.
Any thoughts on where I’m going wrong?
Project files attached below. Here are some screenshots:
UI displaying correctly/natively in an HD window:
UI “fitting best” (filling height, letterboxing the width) when the window has a 1:1 aspect ratio:
UI having issues when an added parent Container with size 768x1024 is set to “Fit Best”
Project:
UI_Project.zip (1.5 MB)




