Using the GTK Inspector to track down cause of unwanted extra width

According to the GTK Inspector, I have a component (AdwHeaderBar) that is two pixels wider than its parent component (GtkBox). This is disturbing the layout.


As far as I can tell I request no custom width/height and don’t add margin. How do I find out where these two excess pixels are coming from?

Hi,

It’s typically CSS using negative margins:

If I remember well:

1 Like