Automatically add/remove colums to GridContainer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lettucing

trying to arrange a menu which has a varying amount of items
since the game window can be resized, i want to automatically change the amount of rows the gridcontainer has.

how could i do this?

:bust_in_silhouette: Reply From: exuin

Listen for NOTIFICATION_RESIZED (Control — Godot Engine (stable) documentation in English) and adjust the rows according.