Fixed bug for free positioning of balanced sorted nodes

This commit is contained in:
Gonzalo Bellver
2012-02-02 12:58:25 -03:00
parent 7c3ffebc84
commit 4391afdf7b
4 changed files with 28 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ mindplot.layout.AbstractBasicSorter = new Class({
_getRelativeDirection: function(reference, position) {
var offset = position.x - reference.x;
return offset > 0 ? 1 : (offset < 0 ? -1 : 0);
return offset >= 0 ? 1 : -1;
}
});