overviewControls: Fix thinko in SlideLayout
Controls that slide left are located on the left, so the offset to align them with the corresponding edge is always 0. It's controls on the right that need a different offset when the available width exceeds the child's width. https://bugzilla.gnome.org/show_bug.cgi?id=728899
This commit is contained in:
parent
84f14cb61c
commit
a4475465f1
@ -64,7 +64,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) : 0;
|
let alignX = (realDirection == SlideDirection.RIGHT) ? (availWidth - natWidth) : 0;
|
||||||
|
|
||||||
let actorBox = new Clutter.ActorBox();
|
let actorBox = new Clutter.ActorBox();
|
||||||
actorBox.x1 = box.x1 + alignX + this._translationX;
|
actorBox.x1 = box.x1 + alignX + this._translationX;
|
||||||
|
Loading…
Reference in New Issue
Block a user