Gtk::Button size inside Gtk::Grid container

Hi guys!

I have a complex UI where a Grid is inside a Grid, inside a Grid, etc. (GTKmm 3.24.20)

The problem is two identical buttons, but for some reason they have a different size:
Screenshot_19

Left button is inside Grid/Grid/Grid, where right Button is inside Grid/Grid.

Grid margins is set to 0:

If I change the container from Gtk::Grid to Gtk::Box then the buttons are the same size.

Any ideas what could be wrong here?

I’ve also ran into this but could not come up with a minimal reproduce case, it seems like a bug so if you are able to reproduce it reliably then you can try to file a gtk issue.

1 Like

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