How can I make scrollable sidebar that grows with its contents?
How can I make scrollable sidebar that grows with its contents?
Solution: the scrollable container was also scrollable horizontally! I had to disable that and it finally expanded to the size of its contents.
Hi,
I found out Godot can be (ab)used to make a cross platform GUIs for applications and would like to make a window with a main container on the left and scrollable feed on the right. The scrollable feed should expand horizontally (max 20% of available space) depending on the size of the contents it has.
I've split the main GUI using an HBoxContainer with a VBoxContainer on the left (mainContainer) and a ScrollContainer (feedScroll) on the right with a VBoxContainer in that. When setting "Expand = true" on mainContainer, it just pushes aside the feedScroll which then has width of 0. The buttons have a min size, so I expected them to widen the vBoxContainer and succeedingly the feedScroll. Alas, the VBoxContainer does have the right width (as you can see in the image), but the feedScroll doesn't have a width.
Below is the scene.
Help would be appreciated. Thanks