ScrollContainer not working

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CalmTurtle

I know it is supposed to be pretty simple but I am not setting something.

I have a ScrollContainer in my GUI. I addChild a large Panel. From the documentation this is all is supposed to take. But alas, not matter the size of the Panel or the ScrollContainer, I can get the scroll bars to show, but they are at the bottom and far right of the image. In other words I only see them after I scroll all the way down or to the right.

Any help or suggestions would be greatly appreciated.

I wanted to add that it seems like they don’t stay within the bounds of the parent container.

Probably helps to note that the Panel is being added programmatically.

CalmTurtle | 2019-04-02 01:07

:bust_in_silhouette: Reply From: CalmTurtle

I solved this by ensuring the parent scroll container had its contents clipped. Took some trial and error using a dumbed down sample scene. Good tip: always try to recreate your error outside the environment.