messageTray: Make sure that the source actor is square
Commit b7e1539699
removed the size to support hidpi but that caused the
actor to no longer be square. Fix that by going back to setting a size
but apply the scale factor before doing so.
This commit is contained in:
parent
8b866efe92
commit
b4ee86955d
@ -1162,8 +1162,10 @@ const SourceActor = new Lang.Class({
|
|||||||
}));
|
}));
|
||||||
this._actorDestroyed = false;
|
this._actorDestroyed = false;
|
||||||
|
|
||||||
|
let scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||||
this._iconBin = new St.Bin({ x_fill: true,
|
this._iconBin = new St.Bin({ x_fill: true,
|
||||||
y_fill: true });
|
height: size * scale_factor,
|
||||||
|
width: size * scale_factor });
|
||||||
|
|
||||||
this.actor.add_actor(this._iconBin);
|
this.actor.add_actor(this._iconBin);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user