#Responsive GridContainers (FlexBox) in Godot 4

1 messages · Page 1 of 1 (latest)

earnest folio
#

hello! I want to make a responsive grid container (flexcontainer) that snaps a grid container to a specific width, basically making a dynamic number of columns depending on the grid size but the single guide i found was outdated.
I saw that godot 4.0 has flow containers, so i tried that, but I cant seem to get it to work, and it just spills out of bounds on to the right of the screen.
How would I fix this?

earnest folio
tropic iris
#

You wouldn't do a FlowContainer and then inside it a GridContainer, you'd put all the buttons as direct children of the FlowContainer.

#

It's trying to update it's minimum size to be at least as big as the biggest item it needs to fit, which is the GridContainer.

earnest folio
#

dang i feel dumb realizing that

#

the solution was right there i was just overthinkinggg