js: Fix alignment
The old StBin alignment properties defaulted to MIDDLE, while the ClutterActor properties use FILL. Fix the resulting fallout by setting the alignment explicitly where necessary. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/809
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
a0b0237689
commit
697912d8a4
@ -71,6 +71,10 @@ class Animation extends St.Bin {
|
||||
this._animations = textureCache.load_sliced_image(file, width, height,
|
||||
scaleFactor, resourceScale,
|
||||
this._animationsLoaded.bind(this));
|
||||
this._animations.set({
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
});
|
||||
this.set_child(this._animations);
|
||||
|
||||
if (wasPlaying)
|
||||
|
Reference in New Issue
Block a user