Commit 7eacf41d authored by Akikonata's avatar Akikonata

removed extra code

parent e720f6e2
...@@ -390,6 +390,21 @@ KityMinder.registerModule( "LayoutBottom", function () { ...@@ -390,6 +390,21 @@ KityMinder.registerModule( "LayoutBottom", function () {
_root.getLayout().align = "center"; _root.getLayout().align = "center";
updateBg( _root ); updateBg( _root );
initLayout( _root ); initLayout( _root );
this._firePharse( new MinderEvent( "RenderNodeLeft", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeCenter", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeRight", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeBottom", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeTop", {
node: _root
}, false ) );
updateShapeByCont( _root ); updateShapeByCont( _root );
updateLayoutAll( _root ); updateLayoutAll( _root );
translateNode( _root ); translateNode( _root );
......
...@@ -475,6 +475,27 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -475,6 +475,27 @@ KityMinder.registerModule( "LayoutDefault", function () {
_root.getLayout().align = "center"; _root.getLayout().align = "center";
updateBg( _root ); updateBg( _root );
initLayout( _root ); initLayout( _root );
// this._fire( new MinderEvent( "beforeRenderNode", {
// node: _root
// }, false ) );
// this._fire( new MinderEvent( "RenderNode", {
// node: _root
// }, false ) );
this._firePharse( new MinderEvent( "RenderNodeLeft", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeCenter", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeRight", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeBottom", {
node: _root
}, false ) );
this._firePharse( new MinderEvent( "RenderNodeTop", {
node: _root
}, false ) );
updateShapeByCont( _root ); updateShapeByCont( _root );
updateLayoutHorizon( _root ); updateLayoutHorizon( _root );
updateLayoutVertical( _root ); updateLayoutVertical( _root );
......
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