#Making a container with dynamic separation

11 messages · Page 1 of 1 (latest)

fallow sapphire
#

As the video demonstrates, I'm toying with some UI features but I ran into a big problem.

I made an expandable "rule" element that is a simple visibility toggle. However, the VBoxContainer doesn't account for this, and always keeps a fixed separation value, causing the expanded panel to not be accounted for in element spacing

#

this happens if I expand a panel from an element that's in the middle of the list xd

#

since godot is made in godot and it has dynamically adjustable menus, I'm sure it is possible to replicate them somehow, but I'm lost

#

I tried all available base types of containers, but they all have fixed separation

#

this is what each "rule" node is comprised of

rancid egret
#

If each rule was itself a container, it would probably force its size in the outer container to be big enough to contain it

#

You already have a VBox as the child of the rule, and no other direct children, so if you could basically just make that VBox the root, that might fix the issue

#

(ie. Reparent all the children of the VBox to the root and change the root's type to VBox)

fallow sapphire
#

THAT ACTUALLY DID IT OH MY GOD

rancid egret
#

:D