Commit 7ee4be5f authored by campaign's avatar campaign

Merge remote-tracking branch 'origin/dev' into dev

Conflicts:
	src/module/nodetext.js
parents e337e127 d02926d1
...@@ -154,7 +154,7 @@ KityMinder.registerModule( "LayoutBottom", function () { ...@@ -154,7 +154,7 @@ KityMinder.registerModule( "LayoutBottom", function () {
default: default:
break; break;
} }
contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] ) ); contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] + _contRCHeight / 2 ) );
}; };
var updateLayoutMain = function () { var updateLayoutMain = function () {
var _root = minder.getRoot(); var _root = minder.getRoot();
......
...@@ -176,7 +176,7 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -176,7 +176,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
default: default:
break; break;
} }
contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] ) ); contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] + _contRCHeight / 2 ) );
}; };
//计算节点在垂直方向的位置 //计算节点在垂直方向的位置
var updateLayoutVertical = function ( node, parent, action ) { var updateLayoutVertical = function ( node, parent, action ) {
......
...@@ -10,7 +10,7 @@ KityMinder.registerModule( "NodeText", function () { ...@@ -10,7 +10,7 @@ KityMinder.registerModule( "NodeText", function () {
node.getContRc().appendShape( textShape ); node.getContRc().appendShape( textShape );
var style = this.getCurrentLayoutStyle()[node.getType()]; var style = this.getCurrentLayoutStyle()[node.getType()];
textShape.fill(style.color).setSize(style.fontSize); textShape.fill(style.color).setSize(style.fontSize);
textShape.setPosition(width,textShape.getHeight() * 0.25) textShape.setPosition(width,textShape.getHeight()*.81)
} }
} }
} }
......
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