mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
editor bug fix
This commit is contained in:
parent
731beef4e8
commit
77766e0a8f
@ -49,7 +49,7 @@ mindplot.layout.SymmetricSorter = new Class({
|
||||
|
||||
var sameParent = parent == graph.getParent(node);
|
||||
if (siblings.length == 0 && nodeDirection == positionDirection && sameParent) {
|
||||
return [node.getOrder(), node.getPosition()];
|
||||
return [node.getOrder() + 1, node.getPosition()];
|
||||
}
|
||||
}
|
||||
|
||||
@ -90,6 +90,12 @@ mindplot.layout.SymmetricSorter = new Class({
|
||||
x:first.getPosition().x,
|
||||
y:first.getPosition().y - first.getSize().height - mindplot.layout.SymmetricSorter.INTERNODE_VERTICAL_PADDING * 2
|
||||
}];
|
||||
return result;
|
||||
}
|
||||
|
||||
// if the node is moving down, substract 1 from the order
|
||||
if (node != null && parent == graph.getParent(node) && result[1].y > node.getPosition().y) {
|
||||
result[0] = result[0] - 1;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user