[gnome-shell] overviewControls: Add the parent's box into the allocation
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overviewControls: Add the parent's box into the allocation
- Date: Wed, 30 Oct 2013 17:17:31 +0000 (UTC)
commit 445011b1e5b1a271ba5410f11c63feca1ec8d139
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 21 17:51:50 2013 -0400
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.
js/ui/overviewControls.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index 8d18997..1ca4178 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]