[gnome-shell] overviewControls: Don't try to align something sliding to the right
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overviewControls: Don't try to align something sliding to the right
- Date: Sat, 12 Oct 2013 18:39:07 +0000 (UTC)
commit 58a8845047f5dda2691fe2183a3d7a4a9f876af1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 18 19:48:51 2013 -0400
overviewControls: Don't try to align something sliding to the right
0 is already the correct value.
https://bugzilla.gnome.org/show_bug.cgi?id=694881
js/ui/overviewControls.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index a415cc1..556ce36 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -63,7 +63,7 @@ const SlideLayout = new Lang.Class({
// flags only determine what to do if the allocated box is bigger
// than the actor's box.
let realDirection = getRtlSlideDirection(this._direction, child);
- let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : (natWidth -
availWidth);
+ let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0;
let actorBox = new Clutter.ActorBox();
actorBox.x1 = alignX;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]