removing position of nodes deeper than 2 for Original layout

This commit is contained in:
Pablo Luna 2011-05-06 17:44:35 +01:00
parent d565d6899e
commit 50e6ff9928

View File

@ -41,6 +41,13 @@ mindplot.layoutManagers.OriginalLayoutManager = mindplot.layoutManagers.BaseLayo
maxOrder=order; maxOrder=order;
} }
result[order] = child; result[order] = child;
//remove position for all childs in depth >1
var parent = node.getParent();
if(core.Utils.isDefined(parent)){
child._position = null;
child._finalPosition = null;
}
} }
} }
nodesByOrder=null; nodesByOrder=null;