# UE 5.3.2 UMG Scaling canvas to predefined aspect ratio confines

**URL:** <https://forums.unrealengine.com/t/ue-5-3-2-umg-scaling-canvas-to-predefined-aspect-ratio-confines/1914915>\
**Category:** UI\
**Tags:** aspect-ratio, unreal-engine, scale, question, UMG\
**Created:** [June 24, 2024, 3:05pm UTC](https://forums.unrealengine.com/t/ue-5-3-2-umg-scaling-canvas-to-predefined-aspect-ratio-confines/1914915 "2024-06-24T15:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rextdwa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rextdwa](https://forums.unrealengine.com/u/rextdwa)\
**Post date:** [June 24, 2024, 3:05pm UTC](https://forums.unrealengine.com/t/ue-5-3-2-umg-scaling-canvas-to-predefined-aspect-ratio-confines/1914915/1 "2024-06-24T15:05:03Z")

</div>

Im having a problem with scaling canvas to desired aspect ratios, in my case from 4:3 to 16:9  
I have a canvas with content, and that is wrapped with size and scale box as shown on the first image  
 ![UnrealEditor_Az8lobMVUm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/7/457449c7cc9eb97fe4e9fcd81069b1b7c5523b3e.png)

I want to define lower and upper limits for size in the size box OR lower and upper limit for aspect ratio, my needs at the moment are 4:3 to 16:9  
if I setup a size box as shown in image 2

 ![UnrealEditor_5R0GOKNUs8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/5/8854a817d1ede6f16792a35e5ca3b913b87709b6.png)

it is scaling correctly as shown on the gif below, but my problem is that its aligned to upper left, I need it to be centered in both axis, so for example in case of ultrawide it would be a 16:9 centered  
 ![UnrealEditor_yx6Ms7ag7i](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/8/3b8b55e70716fcfd7ea883d01a8f8aa24b07fa8b.gif)

Alignment settings for canvas and scalebox are as follows:

 ![UnrealEditor_fMTpa2gF0r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/e/71ec444d7e4d54fa906605747f3fa07e5cae2b77.png)  
 ![UnrealEditor_Zmwmdg8eXw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/3/523a18a6934946983df6209746890f690936ced0.png)
