[gnome-shell] overviewControls: Correct the use of x2 in SlidingControl
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overviewControls: Correct the use of x2 in SlidingControl
- Date: Sat, 12 Oct 2013 18:38:57 +0000 (UTC)
commit 40cd92f701847e805a3d8fbcd1558e2e7802ec80
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 18 19:42:41 2013 -0400
overviewControls: Correct the use of x2 in SlidingControl
The x2 here needs to be more than just the width; it needs to
be added onto the x1.
https://bugzilla.gnome.org/show_bug.cgi?id=694881
js/ui/overviewControls.js | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index c16c4ac..4128d6c 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -63,10 +63,11 @@ const SlideLayout = new Lang.Class({
let translationX = (realDirection == SlideDirection.LEFT) ?
(availWidth - natWidth) : (natWidth - availWidth);
- let actorBox = new Clutter.ActorBox({ x1: translationX,
- y1: 0,
- x2: child.x_expand ? availWidth : natWidth,
- y2: child.y_expand ? availHeight : natHeight });
+ let actorBox = new Clutter.ActorBox();
+ actorBox.x1 = translationX;
+ actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth;
+ actorBox.y1 = 0;
+ actorBox.y2 = actorBox.y1 + child.y_expand ? availHeight : natHeight;
child.allocate(actorBox, flags);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]