Gtk.GridView size is not reflowing


Hi, I’m trying to use a Gtk.GridView in GTK 4 to achieve a multi-column reflowable layout.

However, the grid view container is remaining at a fixed height regardless of width, ignoring the size of the child widgets inside. This results in a rather ridiculous amount of padding between the grid and the button beneath it. This image should illustrate the issue:

Does anyone have any pointers on how to shrink the gridview to match the child widgets? Is this possible, or am I misusing the widget somehow?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.