# How to set size of widget inside a scrollbox?

**URL:** <https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025>\
**Category:** UI\
**Tags:** size, scrollbox, unreal-engine, Widget, question, UMG\
**Created:** [November 27, 2014, 6:33pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025 "2014-11-27T18:33:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [November 27, 2014, 6:33pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/1 "2014-11-27T18:33:30Z")

</div>

Hi all!

I have some widgets with buttons in root. I want to set those widgets in scrollbox menu, but they appear very small.

Size of widgets:

X = size of scrollbox

Y = ???

![22364-2014-11-27+21-23-33+vescinventory4+-+unreal+editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/a/f0abdf017959a3c41817f8404dbca380e7815279.png)

So… How to set Y size of widgets?  
I tried to “set des. size in viewport”, before i add them to scrollbox, bu it didnt work. Tried to Set Size of Grid, UniGrid and vertBox slots, but that didn’t help me as well.

---

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [November 29, 2014, 6:07pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/2 "2014-11-29T18:07:10Z")

</div>

Someone? ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 29, 2014, 7:05pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/3 "2014-11-29T19:05:51Z")

</div>

Hi AIFlakky,

Can you show us an image of Designer for your Widget, including Hierarchy panel so we can see how you have this set up? You can also and attach .uasset file if that’s easier. Thanks!

---

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [November 29, 2014, 9:01pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/4 "2014-11-29T21:01:59Z")

</div>

Here it is… Left is scrollbox with widgets, right is widget with button, that i want to add in ScrollBox.

 ![22480-2014-11-29+23-58-39+newwidgetblueprint+.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/c/e1c40f0cf55feca7d20f7d578bcd99d3d55bf258.png)

---

<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:** [December 1, 2014, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/5 "2014-12-01T15:54:43Z")

</div>

Hello ,

If you would like to be able to set size of things in your scroll box, one of ways that I have found to do this is to add a canvas panel to your scroll box. You can use multiple canvas panels if needed. It will appear very small at first but as soon as you place anything inside canvas panel it will assume size of what ever widget you place in it. You can then size it to your specifications . I have attached an image to show my hierarchy. I hope this helps.

 ![22634-scrollboxhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/6/506df2a1a3d18ef309e60343d245bcd8f766c539.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [December 1, 2014, 8:12pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/6 "2014-12-01T20:12:32Z")

</div>

Thank for answer, but i still have very small size. How did you change size of CanvasPanel? I use 4.5.1

 ![22646-2014-12-01+23-11-17+newwidgetblueprint+.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/2/b12ea6fa5df0a501cecff6717b9b4311e5c10ce6.png)

---

<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:** [December 1, 2014, 8:59pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/7 "2014-12-01T20:59:46Z")

</div>

Hello ,

After further testing it appears that workflow that I gave is only viable in 4.6. I was unable to come up with a workaround for 4.5.1 version of engine. As you can see this is a known issue and it has been addressed in a later version.

---

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [December 1, 2014, 9:08pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/8 "2014-12-01T21:08:18Z")

</div>

Well ok then. Will continue to work on this part, after 4.6 will be released.  
But it would be great, if we can set size of slots right in ScrollBox/VerticalBox settings. Or in slots settings, because now it looks like it sets size of widgets or CanvasPanels to 0.

Anyway, thank you for answering me! 🙂

---

<div class="post-metadata">

**Author:** ![Praetor\_Xjun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Praetor\_Xjun](https://forums.unrealengine.com/u/Praetor_Xjun)\
**Post date:** [March 1, 2015, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/9 "2015-03-01T13:31:40Z")

</div>

Very helpful, thank you!

---

<div class="post-metadata">

**Author:** ![ALangHung](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ALangHung](https://forums.unrealengine.com/u/ALangHung)\
**Post date:** [August 18, 2015, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/10 "2015-08-18T12:05:15Z")

</div>

It not work for me.  
I`m 4.8.3.

---

<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 18, 2015, 12:49pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/11 "2015-08-18T12:49:20Z")

</div>

Hello ,

I just tried this solution in 4.8.3 and appears to work as expected. hierarchy is as follows:

```
[v] Canvas panel

    [v] ScrollBox

        [v] CanvasPanel 

               -YourWidget

```

After you have this setup you can then change size of your widget. I hope that this helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![rasamaya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rasamaya](https://forums.unrealengine.com/u/rasamaya)\
**Post date:** [November 22, 2018, 10:42pm UTC](https://forums.unrealengine.com/t/how-to-set-size-of-widget-inside-a-scrollbox/300025/12 "2018-11-22T22:42:04Z")

</div>

I found Size-Scale-Image works for me in 4.20 and setting say 200 as max Desired Height in Size widget.
