mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
overviewControls: Add the parent's box into the allocation
Currently, this is always 0, but this will change when we introduce a custom layout manager into the story.
This commit is contained in:
parent
e630fec63a
commit
445011b1e5
1 changed files with 2 additions and 2 deletions
|
|
@ -66,9 +66,9 @@ const SlideLayout = new Lang.Class({
|
|||
let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0;
|
||||
|
||||
let actorBox = new Clutter.ActorBox();
|
||||
actorBox.x1 = alignX;
|
||||
actorBox.x1 = box.x1 + alignX;
|
||||
actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth;
|
||||
actorBox.y1 = 0;
|
||||
actorBox.y1 = box.y1;
|
||||
actorBox.y2 = actorBox.y1 + availHeight;
|
||||
|
||||
child.allocate(actorBox, flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue