+1 vote

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.

in Engine by (146 points)
reshown by

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.

1 Answer

+1 vote
Best answer

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.

by (146 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories