Commit 8942a6ef authored by Akikonata's avatar Akikonata

added shicon remove

parent 05aaa04b
...@@ -467,6 +467,11 @@ KityMinder.registerModule( "LayoutBottom", function () { ...@@ -467,6 +467,11 @@ KityMinder.registerModule( "LayoutBottom", function () {
} }
var nodeLayout = nodes[ 0 ].getLayout(); var nodeLayout = nodes[ 0 ].getLayout();
parent.removeChild( nodes[ 0 ] ); parent.removeChild( nodes[ 0 ] );
if ( parent.getType() !== "root" && parent.getChildren().length === 0 ) {
var prtLayout = parent.getLayout();
prtLayout.shicon.remove();
prtLayout.shicon = null;
}
var set = updateLayoutAll( nodes[ 0 ], parent, "remove" ); var set = updateLayoutAll( nodes[ 0 ], parent, "remove" );
for ( var j = 0; j < set.length; j++ ) { for ( var j = 0; j < set.length; j++ ) {
translateNode( set[ j ] ); translateNode( set[ j ] );
......
...@@ -596,6 +596,11 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -596,6 +596,11 @@ KityMinder.registerModule( "LayoutDefault", function () {
sideList.splice( index, 1 ); sideList.splice( index, 1 );
} }
parent.removeChild( nodes[ 0 ] ); parent.removeChild( nodes[ 0 ] );
if ( parent.getType() !== "root" && parent.getChildren().length === 0 ) {
var prtLayout = parent.getLayout();
prtLayout.shicon.remove();
prtLayout.shicon = null;
}
var set = updateLayoutVertical( nodes[ 0 ], parent, "remove" ); var set = updateLayoutVertical( nodes[ 0 ], parent, "remove" );
for ( var j = 0; j < set.length; j++ ) { for ( var j = 0; j < set.length; j++ ) {
translateNode( set[ j ] ); translateNode( set[ j ] );
......
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