panel: Fix corner positions for multi-monitors
The corner positions were only based on the panel's dimensions, its position needs to be taken into account as well.
This commit is contained in:
parent
21cc6a07f5
commit
fb800f3d8b
@ -632,9 +632,11 @@ PanelCorner.prototype = {
|
|||||||
this.actor.set_size(cornerRadius,
|
this.actor.set_size(cornerRadius,
|
||||||
innerBorderWidth + outerBorderWidth + cornerRadius);
|
innerBorderWidth + outerBorderWidth + cornerRadius);
|
||||||
if (this._side == St.Side.LEFT)
|
if (this._side == St.Side.LEFT)
|
||||||
this.actor.set_position(0, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
|
this.actor.set_position(Main.panel.actor.x,
|
||||||
|
Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
|
||||||
else
|
else
|
||||||
this.actor.set_position(Main.panel.actor.width - cornerRadius, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
|
this.actor.set_position(Main.panel.actor.x + Main.panel.actor.width - cornerRadius,
|
||||||
|
Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user