overviewControls: Don't try to align something sliding to the right
0 is already the correct value. https://bugzilla.gnome.org/show_bug.cgi?id=694881
This commit is contained in:
parent
3e6c8e68b4
commit
58a8845047
@ -63,7 +63,7 @@ const SlideLayout = new Lang.Class({
|
|||||||
// flags only determine what to do if the allocated box is bigger
|
// flags only determine what to do if the allocated box is bigger
|
||||||
// than the actor's box.
|
// than the actor's box.
|
||||||
let realDirection = getRtlSlideDirection(this._direction, child);
|
let realDirection = getRtlSlideDirection(this._direction, child);
|
||||||
let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : (natWidth - availWidth);
|
let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0;
|
||||||
|
|
||||||
let actorBox = new Clutter.ActorBox();
|
let actorBox = new Clutter.ActorBox();
|
||||||
actorBox.x1 = alignX;
|
actorBox.x1 = alignX;
|
||||||
|
Loading…
Reference in New Issue
Block a user