Commit 7ae2c4e5 authored by Akikonata's avatar Akikonata

added updateLayout

parent cb3b550b
...@@ -454,6 +454,13 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -454,6 +454,13 @@ KityMinder.registerModule( "LayoutDefault", function () {
_buffer.shift(); _buffer.shift();
} }
}, },
updateLayout: function ( node ) {
drawNode( node );
var set = updateLayoutHorizon( node );
for ( var i = 0; i < set.length; i++ ) {
translateNode( set[ i ] );
}
},
appendChildNode: function ( parent, node, index ) { appendChildNode: function ( parent, node, index ) {
minder.handelNodeInsert( node ); minder.handelNodeInsert( node );
var _root = this.getRoot(); var _root = this.getRoot();
......
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