userWidget: Stop expand flags from propagating

Since commit 9c2da01a9, the avatar's child is expanded to account
for the new St.Bin behavior. However as expand flags are propagated
up, this now results in avatar actor getting unintentionally expanded
in places like the end-session dialog.

Stop this by explicitly setting the avatar actor to not expand.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3221>
This commit is contained in:
Florian Müllner 2024-02-20 13:12:43 +01:00
parent d31dab77e0
commit e1c454bd21

View File

@ -31,6 +31,8 @@ class Avatar extends St.Bin {
reactive: params.reactive,
width: params.iconSize * themeContext.scaleFactor,
height: params.iconSize * themeContext.scaleFactor,
x_expand: false,
y_expand: false,
});
this._iconSize = params.iconSize;