# Scale Box inside Horizontal Box has wrong desired size

**URL:** <https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611>\
**Category:** UI\
**Tags:** layout, unreal-engine, bug-report, UI, Widget, question, UMG\
**Created:** [August 29, 2016, 10:14am UTC](https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611 "2016-08-29T10:14:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Czyzyk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Czyzyk](https://forums.unrealengine.com/u/Czyzyk)\
**Post date:** [August 29, 2016, 10:14am UTC](https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611/1 "2016-08-29T10:14:57Z")

</div>

I’ve managed to find this problem in the issue tracker, but the ticket UE-15446 (unfortunately looking dead for over a year) seems to describe it as a feature request, while it clearly looks like a bug, because the current behaviour doesn’t seem useful in any capacity. The issue talks about Vertical Box, but the problem is exactly the same for Horizontal.

Just to reiterate on the steps to reproduce:

- Put an image in the Horizontal Box, with the image height bigger than box height.
- Wrap the image with a Scale Box.

As a result, the image reports properly shrunk width, but the Scale Box has width equal to unscaled image. This makes using those automatic layouts together with Scale Boxes practically useless.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 29, 2016, 1:45pm UTC](https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611/2 "2016-08-29T13:45:04Z")

</div>

Hello Czyzyk,

Thank you for the additional information, I will make an internal note on the report that includes a link to this thread. I have also provided a link to the public tracker below for others visiting this thread for better visibility.

Link: [Unreal Engine Issues and Bug Tracker (UE-15446)](https://issues.unrealengine.com/issue/UE-15446)

Make it a great day

---

<div class="post-metadata">

**Author:** ![Ded\_Mazay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ded\_Mazay](https://forums.unrealengine.com/u/Ded_Mazay)\
**Post date:** [June 30, 2017, 9:00pm UTC](https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611/3 "2017-06-30T21:00:50Z")

</div>

Still NOT fixed…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_02a60b2f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_02a60b2f](https://forums.unrealengine.com/u/anonymous_user_02a60b2f)\
**Post date:** [October 24, 2018, 9:33am UTC](https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611/4 "2018-10-24T09:33:09Z")

</div>

Still not fixed and the issue disappeared from issue tracker…

---

<div class="post-metadata">

**Author:** ![Ligazetom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ligazetom](https://forums.unrealengine.com/u/Ligazetom)\
**Post date:** [February 26, 2024, 12:03pm UTC](https://forums.unrealengine.com/t/scale-box-inside-horizontal-box-has-wrong-desired-size/368611/5 "2024-02-26T12:03:17Z")

</div>

Yes this was driving me crazy for many years, but not anymore. No idea when and if it will be merged, but in case you guys are building from source, this is all that is needed to make it behave properly: [https://github.com/EpicGames/UnrealEngine/pull/11554](https://github.com/EpicGames/UnrealEngine/pull/11554)
