From eab320dab59e702cda3d2864be2bb59c03d34d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 20 Jun 2019 23:01:52 +0200 Subject: [PATCH] altTab: Ensure style of this._list before calculating icon sizes We're calculating icon sizes for the alt tab switcher early and at a point where the style attributes of this._list are not loaded yet. To make sure the value of this._list.spacing is correct, call ensure_style() on this._list before accessing the spacing. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/587 --- js/ui/altTab.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index ae9846552..6c9aaf1c1 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -728,6 +728,7 @@ class AppSwitcher extends SwitcherPopup.SwitcherList { j++; } let themeNode = this._items[j].get_theme_node(); + this._list.ensure_style(); let iconPadding = themeNode.get_horizontal_padding(); let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT);