Hi, I have mostly the same issue as GTK3 theming - popup window positioning with Gtk 3.24.
I create a GtkWidget *combobox = gtk_combo_box_text_new();
. Then, in CSS, I apply margins to the combobox:
combobox {
margin: 2px 0.25em;
}
But then, when clicking over the combobox, the popup menu window is aligned on its parent widget, ignoring the left margin, which is annoying as the selected entry then shifts to the left by 0.25em.
I tried
combobox window {
margin: 2px 0.25em;
}
but it doesn’t work. Alignment is correct only if the combobox left margin is 0.
I could insert all comboboxes into boxes and add padding on the parent box, but that’s cumbersome. Is there a way to define an offset when anchoring the popup window ?
Thanks