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
(cherry picked from commit eab320dab5
)
This commit is contained in:
parent
95e353fdb4
commit
ea51a7c657
@ -730,6 +730,7 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
let themeNode = this._items[j].get_theme_node();
|
let themeNode = this._items[j].get_theme_node();
|
||||||
|
this._list.ensure_style();
|
||||||
|
|
||||||
let iconPadding = themeNode.get_horizontal_padding();
|
let iconPadding = themeNode.get_horizontal_padding();
|
||||||
let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT);
|
let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT);
|
||||||
|
Loading…
Reference in New Issue
Block a user