# \[UE5\] SizeBox widget Width override ignored.

**URL:** <https://forums.unrealengine.com/t/ue5-sizebox-widget-width-override-ignored/1179193>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, bug-report, editor, Rendering, Widget, Blueprint, CPP, question, UMG\
**Created:** [May 26, 2023, 10:56am UTC](https://forums.unrealengine.com/t/ue5-sizebox-widget-width-override-ignored/1179193 "2023-05-26T10:56:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 26, 2023, 10:56am UTC](https://forums.unrealengine.com/t/ue5-sizebox-widget-width-override-ignored/1179193/1 "2023-05-26T10:56:06Z")

</div>

Width override of SizeBox is expected to be just that. 50px is 50px. It ignores this property if the slot alignment is set to “fill horizontally” or if there is no content. Override is also ignored if there is a size specified as slot of a canvas panel.

This is rather annoying when the width override property is used in widget animations.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [May 26, 2023, 11:42am UTC](https://forums.unrealengine.com/t/ue5-sizebox-widget-width-override-ignored/1179193/2 "2023-05-26T11:42:26Z")

</div>

If you do a hierarchy of  
HorizontalBox  
&nbsp;&nbsp;|\_ Named Slot  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\_ SizeBox

Then you can set the named slot to “Fill” and choose Horizontal alignment (for instance center). And set the size box width override and it works.

 ![aligned](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/c/21cd99111378b9d0f0eb28f648eeefb13353f01d.png)

A bit of a workaround, but I’m getting the vibe that unreal is slowly going down the path of Maya with a 100 methods to jump over bugs atm ☹

You can also set the proportion of the fill in the named slot and it behaves as it should.

 ![prop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/8/9080c7fb0329eb8787e4933d51e6942f6ad7c3d2.png)

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 26, 2023, 12:26pm UTC](https://forums.unrealengine.com/t/ue5-sizebox-widget-width-override-ignored/1179193/3 "2023-05-26T12:26:30Z")

</div>

> [@3dRaven](#):
>
> HorizontalBox  
> |\_ Named Slot  
> |\_ SizeBox

Interesting 🙂 but that would lead to more problems if you need the named slot to be “private” just to get functionality, because you can fill in a named slot from anywhere which is not desired. If the width override property would just work as expected you could make nice “sliding” animations on the width property alone, but it’s too fragile to be used everywhere. Thanks for the testing though 🙂 you are right unreal is going downhill fast sadly… I mostly post these issues in hopes to get some attention of a quality control team if any exists lol. Worst case EPIC goes the path of Bethesda games, letting the community mop up the issues…

---

<div class="post-metadata">

**Author:** ![Vannys](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vannys](https://forums.unrealengine.com/u/Vannys)\
**Post date:** [February 17, 2025, 5:47am UTC](https://forums.unrealengine.com/t/ue5-sizebox-widget-width-override-ignored/1179193/4 "2025-02-17T05:47:44Z")

</div>

If anyone is still having this issue, I have found that enabling ‘size to content’ and then changing the width and height override works.
