Layout GUI items in a resizeable grid?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zylann
:warning: Old Version Published before Godot 3 was released.

I have a container in which I put GUI items. I want items to be placed from left to right, then go to a new row if it goes beyond the maximum width, etc. This way, my container should form a resizeable grid layout.

I tried GridContainer but it only allows a fixed number of columns. How can I layout my items like with a flow layout?

I’m fighting with gui system myself. I wonder, maybe you should write your own container? This should be possible by extending Container

Daniel Lewan | 2016-05-29 22:49

I even dropped GridLayout at the moment because it caused weird input behaviour with zoomed canvas layers. Now I instance the items myself into the void, but it’s still fixed-layout with hardcoded values… Too bad I can’t use existing classes :s

Zylann | 2016-05-30 00:43