[gnome-shell] iconGrid: Fix icon alignment
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] iconGrid: Fix icon alignment
- Date: Fri, 20 Dec 2019 22:03:38 +0000 (UTC)
commit f5f9bd2e5e1844449003b51084fe921bb7f59c3a
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 20 22:47:01 2019 +0100
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 6d6ff5cbe2..11ea0a7f92 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]