[gnome-shell] layout: Use translation_y for panel animation
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] layout: Use translation_y for panel animation
- Date: Mon, 3 Dec 2012 21:17:47 +0000 (UTC)
commit 49fa0ddebcd7ce5866c9ae2521c3b48baf1f840d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 3 15:45:27 2012 -0500
layout: Use translation_y for panel animation
The anchor point is deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=689537
js/ui/layout.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index a84a9b0..3a20f92 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -342,7 +342,7 @@ const LayoutManager = new Lang.Class({
},
_startupAnimation: function() {
- this.panelBox.anchor_y = this.panelBox.height;
+ this.panelBox.translation_y = -this.panelBox.height;
let plymouthTransitionRunning = false;
@@ -378,7 +378,7 @@ const LayoutManager = new Lang.Class({
}
Tweener.addTween(this.panelBox,
- { anchor_y: 0,
+ { translation_y: 0,
time: STARTUP_ANIMATION_TIME,
transition: 'easeOutQuad',
onComplete: this._startupAnimationComplete,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]