GridView expands more than needed

I’m replacing my IconView with GridView but the GridView expands vertically more than needed.
No errors or warning displayed.
An example window: https[:]//github[.]com/Samega7Cattac/DrawingAreaTest
If in the pictures I set set_can_shrink to true the images shrink too much to the point they don’t appear.
Using gtkmm 4.8