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:
Adel Gadllah 2014-02-26 18:09:45 +01:00
parent 8b866efe92
commit b4ee86955d

View File

@ -1162,8 +1162,10 @@ const SourceActor = new Lang.Class({
}));
this._actorDestroyed = false;
let scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
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);