# \[Bug?\]\[UMG\] Image with aspect ratio and horizontally aligned - messes up the size?

**URL:** <https://forums.unrealengine.com/t/bug-umg-image-with-aspect-ratio-and-horizontally-aligned-messes-up-the-size/135499>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 25, 2019, 1:26pm UTC](https://forums.unrealengine.com/t/bug-umg-image-with-aspect-ratio-and-horizontally-aligned-messes-up-the-size/135499 "2019-12-25T13:26:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matan19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matan19](https://forums.unrealengine.com/u/matan19)\
**Post date:** [December 25, 2019, 1:26pm UTC](https://forums.unrealengine.com/t/bug-umg-image-with-aspect-ratio-and-horizontally-aligned-messes-up-the-size/135499/1 "2019-12-25T13:26:59Z")

</div>

My hierarchy (removed some overlay/images since they shouldn’t matter):

- [Root]
  - Horizontal Box
  - some area we don’t care about (size fill=0.8)
  - divider (image with width=2, size auto)
  - vertical box (size fill = 0.2)
    - size box
      - image

https://forums.unrealengine.com/core/image/gif;base64  
​  
I want the image to show up in the vertical box, with an aspect ratio of 1.7, and be horizontally aligned.  
I tried wrapping it in a size box setting the minimum and maximum aspect ratio to 1.7, and using horizontal aligned, but then the entire image scaled down rather than simply be aligned.

Is this a bug or am I missing something?

Some picture since it’s easier to understand:

(1) Base. This is what it looks like with a size box and aspect ratio set and the image inside, but no alignment set

 ![sizebox_aligned.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/c/c9cd584252b8fb304b4ecf6c8d3cac6b9b4a685f.png)

(2) Sizebox aligned. This is what happens when I set the sizebox alignment to middle in horizontal. As you can see, it scaled down the image rather than simply aligning it

 ![sizebox_aligned.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/c/c9cd584252b8fb304b4ecf6c8d3cac6b9b4a685f.png)

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [December 25, 2019, 2:39pm UTC](https://forums.unrealengine.com/t/bug-umg-image-with-aspect-ratio-and-horizontally-aligned-messes-up-the-size/135499/2 "2019-12-25T14:39:29Z")

</div>

It can be difficult to wrap your head around. It can also be difficult for us to judge without seeing the actual hierarchy. If you have an image in a size box and it’s scaling the image down rather than conforming to the size box, I’d wager the image is not set to horizontally and vertically fill.

---

<div class="post-metadata">

**Author:** ![matan19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matan19](https://forums.unrealengine.com/u/matan19)\
**Post date:** [December 25, 2019, 2:51pm UTC](https://forums.unrealengine.com/t/bug-umg-image-with-aspect-ratio-and-horizontally-aligned-messes-up-the-size/135499/3 "2019-12-25T14:51:06Z")

</div>

I managed to reproduce it in a smaller project so here are more details:

 ![base.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/3/c3ec058e3ba8af5e21954172554a5731458d7fb7.png)

and 2nd picture with the alignment set:

 ![base2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/c/3c12566ad35efb308bd96f3748fb614aa98407e6.png)

and here’s an image showing you’d lose that wager 😉

 ![base3.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/5/3500fb821a2a983654253c6ba4e32578a438aaa3.png)
