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



commit 2fc8d7e17d12a1ccd820506e25197786bfd3e55b
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 1607c1c..a8fde8b 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -460,21 +460,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]