GNOME Bugzilla – Bug 773459
[GtkListBox] setting margins result in black areas
Last modified: 2018-05-02 17:42:08 UTC
Created attachment 338388 [details]
With Gtk 3.22 setting margins on a GtkListBox results in black areas.
Easy to reproduce in gtk3-demo with some added css (see attached screenshot).
I also check master from git and gtk4-demo showed just one big black area for ListBox, maybe the same issue?
> I also check master from git and gtk4-demo showed just one big black area
> for ListBox, maybe the same issue?
No; the rendering in master is currently being reworked, so you cannot draw any conclusion from it.
*** Bug 773255 has been marked as a duplicate of this bug. ***
I talked to Company about this. The exact details already slipped my mind, but it likely had to do with the margins not being taken into some background size calculation.
A workaround is to set the background to transparent. See https://git.gnome.org/browse/gnome-music/commit/?id=c624a9d0ef8d6b8dd1d9e06b44d76ec0f5c6094f as an example.
Created attachment 351199 [details]
This has been introduced by this commit: https://git.gnome.org/browse/gtk+/commit/?id=9cb0a97bb56ef904e7518a8b3bd722acd8515773.
See how the problem does not show up when you resize the window so that it shows all items.
-- GitLab Migration Automatic Message --
This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/694.