GtkPopover should be positioned relative to a widget's content box, not margin box
Steps to reproduce
- Create a widget and style with CSS margin/border/padding, etc
- Create a popover, set it relative to this widget
- Show the popover
Current behavior
The popover will be shown adjacent to the widget's "margin box".
Expected outcome
The popover will be shown adjacent to the widget's content box.
Version information
3.22.30
Additional information
This label has a margin applied to create space between it and its containing list box row (as indicated by the green box), and so the popover is poorly positioned relative to the label's actual content (the pink box):
A work around is to apply padding to the list box row instead, but that doesn't work for rows that also embed larger widgets (e.g. a combo box).
Edited by Michael Gratton