Fixed bug for free positioning of balanced sorted nodes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user