# UMG: Scale Box with Image and Size to content. Layout problem.

**URL:** <https://forums.unrealengine.com/t/umg-scale-box-with-image-and-size-to-content-layout-problem/560386>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, UI, question, UMG\
**Created:** [May 18, 2022, 4:23pm UTC](https://forums.unrealengine.com/t/umg-scale-box-with-image-and-size-to-content-layout-problem/560386 "2022-05-18T16:23:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e02a3632](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e02a3632](https://forums.unrealengine.com/u/anonymous_user_e02a3632)\
**Post date:** [May 18, 2022, 4:23pm UTC](https://forums.unrealengine.com/t/umg-scale-box-with-image-and-size-to-content-layout-problem/560386/1 "2022-05-18T16:23:26Z")

</div>

![Image 1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/a/56ad7cf39f68e2b7cc64c7d3aed4097cb22eda17.png)  
 ![Image 2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/a/7aa81ee15d6d5e41e9529a22072ff7bb819a8f49.png)

Hello,  
I want to create a sort of killfeed. With Texts and Icons in a Horizontal Box. The Box should have a background color so I added an Overlay and inside of that an image.  
The X Scale of the Horizontal Box can change depending on the content. So I want my Overlay to also change it’s Size. For that the “Size to content” field should work.

But everytime I do this, my image gets waaaaay to big. Before having the overlay, the image is scaled down with a scale box. But the “Size to Content” seems to disable that functionality.

I hope the images attached provide all necessary context to solve the issue. The finals result should be something like the killfeed in CS:GO.

Thanks for the help 😃
