[gnome-documents] preview: animate on translation_y instead of y for fullscreen toolbar



commit de42ab3b070c1da0c17e4e44ace3147d855f5660
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Dec 4 17:06:33 2012 -0500

    preview: animate on translation_y instead of y for fullscreen toolbar
    
    This is what we should use to animate the translation.

 src/preview.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index b0a42b0..2ecc59c 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -475,21 +475,21 @@ const PreviewFullscreenToolbar = new Lang.Class({
 
         this.actor.visible = false;
         this.widget.sensitive = false;
-        this.actor.y = -(this.widget.get_preferred_height()[1]);
+        this.actor.translation_y = -(this.widget.get_preferred_height()[1]);
     },
 
     show: function() {
         this.actor.show();
         this.widget.sensitive = true;
         Tweener.addTween(this.actor,
-                         { y: 0,
+                         { translation_y: 0,
                            time: 0.20,
                            transition: 'easeInQuad' });
     },
 
     hide: function() {
         Tweener.addTween(this.actor,
-                         { y: -(this.widget.get_preferred_height()[1]),
+                         { translation_y: -(this.widget.get_preferred_height()[1]),
                            time: 0.20,
                            transition: 'easeOutQuad',
                            onComplete: function() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]