0 votes

I am trying to create an infinite (one column) scroll page with posts listed that all have different heights. This scroll column should always take in the whole space available in width (like width: 100% in css). The problem is that I could not find a node doing this out of the box. The height of VBox containers' items is only settable by a "stretch ratio", which of course changes the end result when items get added to the list or the VBox container gets resized.
I am just looking for a way to create an expandable list where every item gets added below the previous and where its width gets adjusted to take in 100% of the available horizontal space.

Godot version v3.2.3.stable.official
in Engine by (160 points)
edited by

1 Answer

0 votes
Best answer

Just use rect_min_size to define the height of your listed elements.

by (160 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.