Commit 8b320fdf authored by Akikonata's avatar Akikonata

added translate

parent 0977f15a
......@@ -154,7 +154,7 @@ KityMinder.registerModule( "LayoutBottom", function () {
default:
break;
}
//contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] + node.getTextShape().getHeight() ) );
contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] ) );
};
var updateLayoutMain = function () {
var _root = minder.getRoot();
......
......@@ -176,7 +176,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
default:
break;
}
//contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] + node.getTextShape().getHeight() ) );
contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] ) );
};
//计算节点在垂直方向的位置
var updateLayoutVertical = function ( node, parent, action ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment