Browse files

Add an offset translation to maintain offset even if we don't want the

tree to move when focusing a node.
  • Loading branch information...
1 parent f0caf4a commit 27010aaa5c2830be81b55c795dcee5e058067145 @philogb philogb committed with clementdenis May 4, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/Visualizations/Spacetree.js
View
2 Source/Visualizations/Spacetree.js
@@ -341,6 +341,8 @@ $jit.ST= (function() {
};
if(move.enable) {
this.geom.translate(node.endPos.add(offset).$scale(-1), "end");
+ } else {
+ this.geom.translate($C(offset.x, offset.y).$scale(-1), "end");
}
this.fx.animate($.merge(this.controller, { modes: ['linear'] }, onComplete));
},

0 comments on commit 27010aa

Please sign in to comment.