fixing freemind layout with import

This commit is contained in:
Pablo Luna
2011-04-16 14:18:33 +01:00
parent 776e216e50
commit 4e746833ae
29 changed files with 145 additions and 89 deletions

View File

@@ -35,6 +35,13 @@ mindplot.layoutManagers.FreeMindLayoutManager = mindplot.layoutManagers.BaseLayo
return true;
});
} else {
//sort childs by order
var result = children.sort(function(n1, n2){
if(n1.getOrder() && n2.getOrder())
return n1.getOrder()>n2.getOrder();
else
return true;
});
delete node.getModel()._finalPosition;
result = children;
}