Commit b5ef2e6f authored by Akikonata's avatar Akikonata

fixed resize bug

parent dc35c4bb
...@@ -236,8 +236,9 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -236,8 +236,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
} }
prt = prt.getParent(); prt = prt.getParent();
} }
//自顶向下更新受影响一侧的y值 }
var sideList = root.getLayout()[ appendside + "List" ]; //自顶向下更新受影响一侧的y值
var updateSide = function ( appendside ) {
var _buffer = [ root ]; var _buffer = [ root ];
while ( _buffer.length > 0 ) { while ( _buffer.length > 0 ) {
var _buffer0Layout = _buffer[ 0 ].getLayout(); var _buffer0Layout = _buffer[ 0 ].getLayout();
...@@ -252,6 +253,13 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -252,6 +253,13 @@ KityMinder.registerModule( "LayoutDefault", function () {
if ( _buffer[ 0 ] !== root ) effectSet.push( _buffer[ 0 ] ); if ( _buffer[ 0 ] !== root ) effectSet.push( _buffer[ 0 ] );
_buffer.shift(); _buffer.shift();
} }
};
var sideList;
if ( appendside ) {
updateSide( appendside );
} else {
updateSide( "left" );
updateSide( "right" );
} }
return effectSet; return effectSet;
}; };
......
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