[the-board/selection-toolbar: 4/5] more



commit d326af3d3150e9bcb7e751b04c97afdf871491c6
Author: Lucas Rocha <lucasr gnome org>
Date:   Mon Jan 24 23:57:14 2011 +0000

    more

 src/js/ui/page.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/page.js b/src/js/ui/page.js
index c1323d4..5958059 100644
--- a/src/js/ui/page.js
+++ b/src/js/ui/page.js
@@ -493,7 +493,16 @@ Page.prototype = {
                 y = alignmentCoord - (area.y2 - area.y1);
             }
 
+            thing.actor.anchorX = x - area.x1;
+            thing.actor.anchorY = y - area.y1;
+
             thing.setPosition(x, y);
+
+            Tweener.addTween(thing.actor,
+                             { anchorX: 0,
+                               anchorY: 0,
+                               time: _ADD_THING_TIME,
+                               transition: _ADD_THING_TRANSITION });
         };
 
         this._selectedThings.forEach(moveThing);



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