diff --git a/js/ui/altTab.js b/js/ui/altTab.js index ad2c0ca7a..3c23d68e5 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -734,8 +734,8 @@ class AppSwitcher extends SwitcherPopup.SwitcherList { let iconPadding = themeNode.get_horizontal_padding(); let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT); - let [iconMinHeight, iconNaturalHeight] = this.icons[j].label.get_preferred_height(-1); - let iconSpacing = iconNaturalHeight + iconPadding + iconBorder; + let [, labelNaturalHeight] = this.icons[j].label.get_preferred_height(-1); + let iconSpacing = labelNaturalHeight + iconPadding + iconBorder; let totalSpacing = this._list.spacing * (this._items.length - 1); // We just assume the whole screen here due to weirdness happing with the passed width