Scrollbox not scrollable

Hi guys,

I have a scrollbar inside a canvas panel but the scrollbar is not working. I tried putting it in a horizontal box - the result is the same.

Also, there are some buttons in the scrollbox added dynamically which are not clickable.

Does anyone have an idea what the reason might be?

Here are the pics:

Thank you!

I just tried setting up a scrollbox and noticed that the scroll bar doesn’t show unless there are enough items in the list to overflow the scrollbox size. Do you have enough items in your list that a scrollbox is needed? I found that even though you check on the “always show scrollbar” option it doesn’t appear to work. My scrollbar doesn’t show unless there are lots of items so that the scrollbar height is exceeded.

&stc=1

Capture3.JPG&stc=1

quality, thanks for your reply. The scrollbar shows, the problem is that it can’t be scrolled.

have you enabled mouse inputs?

Yes, the mouse cursor shows. I’m wondering if it has something to do with the Add Child node - not adding children correctly?

I knew Super old thread, but there was never an anwser. Okay I just wanted to put my two cents in here. :slight_smile: I just had this issue and come to find out that the other items in the widget in order were set to visible and everything in front of that part of the widget (borders, boxes, etc) needed to be set to Hit Test Invisible or Self Hit Test Invisible. Once doing this it worked! I was able to scroll. Even the root itself had to be Self Hit Test Invisible

this is very old thread… but let me tell you solution, just increase the ZOrder value of ScrollBox to 1 so you can actually access on ScrollBox over other things

1 Like

Hi, all necroposters. I got the same problem today.
A scrollbox is created in billions of kilometers tall, and its low edge is not visible beyond the edge of the screen. Therefore, all objects fit and the scroll does not work. Just add sizeBox and put scrollBox in it. in sizebox, set a limit on the maximum height.

3 Likes

Not all heroes wear capes. Thank you kind sir!

1 Like

My solution is to use fill:

6 Likes

Thanks, this worked for me :slight_smile: What I have now is a Vertical Box with fixed size and a Scroll Box as a child - with the “Fill” option selected.

2 Likes

My setup is using a scrollbox in an Editor Utility Widget.
It can work if I set its parent to a fixed size, as suggested above.
However, what I intend is to have it resize automatically when the user resizes the panel window of the utility.
Is that possible? Any suggestions?
Thank you.

Make sure to enable “Size to content” in Vertical Box
image

1 Like

Thanks that solved the issue.
I was keeping the list view inside a vertical box and sroll bar wasn’t disp0laying. Once I have putted fill issue is gone.
Thanks again

1 Like

Bro, Thank you So Much. Save my brain from getting crazy. I spend hr on this. Finally came to your comment and found solution. Thank you!