Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to set the size of widget inside a scrollbox?

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 = ???

alt text

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

Product Version: Not Selected
more ▼

asked Nov 27 '14 at 06:33 PM in Blueprint Scripting

avatar image

418 23 30 47

avatar image AlFlakky Nov 29 '14 at 06:07 PM

Someone? :(

avatar image Ben Halliday STAFF Nov 29 '14 at 07:05 PM

Hi AIFlakky,

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

avatar image AlFlakky Nov 29 '14 at 09:01 PM

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

alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello AlFlakky,

If you would like to be able to set the size of things in your scroll box, one of the 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 the canvas panel it will assume the 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. alt text

Make it a great day

scrollboxhelp.png (52.5 kB)
more ▼

answered Dec 01 '14 at 03:54 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image AlFlakky Dec 01 '14 at 08:12 PM

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

alt text

avatar image Rudy Q ♦♦ STAFF Dec 01 '14 at 08:59 PM

Hello AlFlakky,

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

avatar image AlFlakky Dec 01 '14 at 09:08 PM

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 the size of slots right in ScrollBox/VerticalBox settings. Or in slots settings, because now it looks like it sets the size of widgets or CanvasPanels to 0.

Anyway, thank you for answering me! :)

avatar image Praetor Xjun Mar 01 '15 at 01:31 PM

Very helpful, thank you!

avatar image ALangHung Aug 18 '15 at 12:05 PM

It not work for me. I`m 4.8.3.

avatar image Rudy Q ♦♦ STAFF Aug 18 '15 at 12:49 PM

Hello ALangHung,

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

 [v] Canvas panel
     [v] ScrollBox
         [v] CanvasPanel 

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

Make it a great day

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Nov 22 '18 at 10:42 PM

avatar image

70 1 8 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question