Commit 1dbbf70b authored by Akikonata's avatar Akikonata

fixed drag bug

parent c081cbda
...@@ -32,7 +32,7 @@ var MoveToParentCommand = kity.createClass( 'MoveToParentCommand', { ...@@ -32,7 +32,7 @@ var MoveToParentCommand = kity.createClass( 'MoveToParentCommand', {
function boxMapper( node ) { function boxMapper( node ) {
return node.getRenderContainer().getRenderBox(); return node.getRenderContainer().getRenderBox( 'top' );
} }
// 对拖动对象的一个替代盒子,控制整个拖放的逻辑,包括: // 对拖动对象的一个替代盒子,控制整个拖放的逻辑,包括:
......
...@@ -464,6 +464,11 @@ KityMinder.registerModule( "LayoutBottom", function () { ...@@ -464,6 +464,11 @@ KityMinder.registerModule( "LayoutBottom", function () {
translateNode( set[ j ] ); translateNode( set[ j ] );
updateConnectAndshIcon( set[ j ] ); updateConnectAndshIcon( set[ j ] );
} }
var set1 = updateLayoutMain();
for ( var k = 0; k < set1.length; k++ ) {
translateNode( set1[ k ] );
updateConnectAndshIcon( set1[ k ] );
}
var _buffer = [ nodes[ 0 ] ]; var _buffer = [ nodes[ 0 ] ];
while ( _buffer.length !== 0 ) { while ( _buffer.length !== 0 ) {
_buffer = _buffer.concat( _buffer[ 0 ].getChildren() ); _buffer = _buffer.concat( _buffer[ 0 ].getChildren() );
......
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