After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773459 - [GtkListBox] setting margins result in black areas
[GtkListBox] setting margins result in black areas
Product: gtk+
Classification: Platform
Component: Widget: Other
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
: 773255 (view as bug list)
Depends on:
Reported: 2016-10-25 08:18 UTC by Marinus Schraal
Modified: 2018-05-02 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---

black margins (569.25 KB, image/png)
2016-10-25 08:18 UTC, Marinus Schraal
reproducer (985 bytes, text/x-csrc)
2017-05-05 13:21 UTC, Marek Kašík

Description Marinus Schraal 2016-10-25 08:18:19 UTC
Created attachment 338388 [details]
black margins

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?
Comment 1 Emmanuele Bassi (:ebassi) 2016-10-25 10:13:03 UTC
> 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.
Comment 2 Robert Roth 2016-11-01 10:29:56 UTC
*** Bug 773255 has been marked as a duplicate of this bug. ***
Comment 3 Marinus Schraal 2016-11-26 12:31:15 UTC
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 as an example.
Comment 4 Marek Kašík 2017-05-05 13:21:27 UTC
Created attachment 351199 [details]

This has been introduced by this commit:

See how the problem does not show up when you resize the window so that it shows all items.
Comment 5 GNOME Infrastructure Team 2018-05-02 17:42:08 UTC
-- 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: