From f5f9bd2e5e1844449003b51084fe921bb7f59c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 20 Dec 2019 22:47:01 +0100 Subject: [PATCH] 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 --- js/ui/iconGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 6d6ff5cbe..11ea0a7f9 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -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);