Commit 58054698 authored by techird's avatar techird

Merge branch 'dev' of https://github.com/fex-team/kityminder into dev

parents 32bc331d 3d7f6dd6
...@@ -44,7 +44,7 @@ KityMinder.registerModule( "IconModule", function () { ...@@ -44,7 +44,7 @@ KityMinder.registerModule( "IconModule", function () {
} }
if ( val < 5 ) d.close(); if ( val < 5 ) d.close();
_percent.fill( "#29A6BD" ); _percent.fill( "#29A6BD" );
_rc.setTranslate( _contRc.getWidth() + 5, 0 ); _rc.setTranslate( _contRc.getWidth() / 2, 0 );
}; };
var setPriorityCommand = kity.createClass( "SetPriorityCommand", ( function () { var setPriorityCommand = kity.createClass( "SetPriorityCommand", ( function () {
return { return {
......
...@@ -392,7 +392,7 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -392,7 +392,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
.clear() .clear()
.moveTo( sX, sY ) .moveTo( sX, sY )
.lineTo( sX, nodeY > sY ? ( nodeY - nodeStyle.margin[ 3 ] ) : ( nodeY + nodeStyle.margin[ 3 ] ) ); .lineTo( sX, nodeY > sY ? ( nodeY - nodeStyle.margin[ 3 ] ) : ( nodeY + nodeStyle.margin[ 3 ] ) );
if ( nodeY > sY ) connect.getDrawer().carcTo( nodeStyle.margin[ 3 ], 0, 0, nodeX, nodeY, 0, 1 ); if ( nodeY > sY ) connect.getDrawer().carcTo( nodeStyle.margin[ 3 ], 0, 1, nodeX, nodeY, 0, 1 );
else connect.getDrawer().carcTo( nodeStyle.margin[ 3 ], 0, 0, nodeX, nodeY ); else connect.getDrawer().carcTo( nodeStyle.margin[ 3 ], 0, 0, nodeX, nodeY );
connect.stroke( nodeStyle.stroke ); connect.stroke( nodeStyle.stroke );
} else { } else {
...@@ -523,6 +523,8 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -523,6 +523,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
updateLayoutHorizon( _root ); updateLayoutHorizon( _root );
updateLayoutVertical( _root ); updateLayoutVertical( _root );
translateNode( _root ); translateNode( _root );
if ( historyPoint ) _root.setPoint( historyPoint.x, historyPoint.y );
var mains = _root.getChildren(); var mains = _root.getChildren();
for ( var i = 0; i < mains.length; i++ ) { for ( var i = 0; i < mains.length; i++ ) {
this.appendChildNode( _root, mains[ i ] ); this.appendChildNode( _root, mains[ i ] );
...@@ -555,7 +557,7 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -555,7 +557,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
Layout.align = siblingLayout.align; Layout.align = siblingLayout.align;
if ( parent.getType() === "root" ) { if ( parent.getType() === "root" ) {
minder.handelNodeInsert( node ); minder.handelNodeInsert( node );
var len = parent.getChildren().length; var len = children.length;
if ( len < 7 ) { if ( len < 7 ) {
if ( len % 2 ) { if ( len % 2 ) {
Layout.appendside = "right"; Layout.appendside = "right";
......
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