iconGrid: Fix icon alignment

We don't want the icon to fill extra space, so set the alignment
accordingly. Otherwise we get an unexpected result when adding
a background just to the icon part (as far as I can tell: just
system-action-icon).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/909
This commit is contained in:
Florian Müllner 2019-12-20 22:47:01 +01:00
parent 15d74c9cd4
commit f5f9bd2e5e

View File

@ -51,7 +51,7 @@ class BaseIcon extends St.Bin {
this.set_child(this._box);
this.iconSize = ICON_SIZE;
this._iconBin = new St.Bin();
this._iconBin = new St.Bin({ x_align: Clutter.ActorAlign.CENTER });
this._box.add_actor(this._iconBin);