overviewControls: Fix bad expression causing incorrect thumbnails allocation
`a + b ? c : d` is parsed as `(a + b) ? c : d`, not the more intuitive `a + (b ? c : d)`. This was causing a bad slide animation and Clutter warnings when coming out of the overview.
This commit is contained in:
parent
252617bd70
commit
ea2451d882
@ -68,7 +68,7 @@ const SlideLayout = new Lang.Class({
|
||||
|
||||
let actorBox = new Clutter.ActorBox();
|
||||
actorBox.x1 = box.x1 + alignX + this._translationX;
|
||||
actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth;
|
||||
actorBox.x2 = actorBox.x1 + (child.x_expand ? availWidth : natWidth);
|
||||
actorBox.y1 = box.y1;
|
||||
actorBox.y2 = actorBox.y1 + availHeight;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user