The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+2 votes

I am creating a game where I dynamically add nodes to a VBoxContainer, a dynamic list in effect. However, when I add nodes to the VBoxContainer the nodes overlap. Why is this? Can I change this? I thought everything in a VBoxContainer was supposed to be arranged vertically, not overlapping.
I can sort of fix this issue by increasing the separation, but my nodes inside the vbox are dynamic size so a static separation between nodes won't work

And also I have...

Scroll Container
--->Dynamically added and sized Control Nodes

But no matter how many control nodes I add, I never get the scrolling functionality. After a few added nodes, they just disappear presumably under the bottom of the VBoxContainer I think.

What is a good setup for what I am trying to do? Surely I'm not the first to put dynamically size nodes in a scroll-able container?
Thanks for the help!

Godot version 3.2.2
in Engine by (17 points)

Panel should use size flags of extend and fill for both directions (vertical and horizontal), same for vboxcontainer.

Wich is weird is that you added child control as child of the vboxcontainer and they overlaps, are you sure that you're adding them as child of the VBox?

the nodes are children of the vboxcontainer. I can from the remote view in debug mode.
the only way I can get them to stop overlapping is by increasing the separation on the rolescontainer nodes (the nodes I am adding to my vbox).
And when I add 3 nodes the scroll bar appears, but I can only scroll to see the first two. I added the size flags, like you said but it made no difference as far as I could see.

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.