mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
⚡ Improve node locations
This commit is contained in:
parent
d0289e88b3
commit
6672a62a62
|
@ -830,7 +830,7 @@ export default mixins(
|
|||
newPosition = newPosition.slice();
|
||||
|
||||
if (!movePosition) {
|
||||
movePosition = [35, 35];
|
||||
movePosition = [50, 50];
|
||||
}
|
||||
|
||||
let conflictFound = false;
|
||||
|
@ -933,8 +933,8 @@ export default mixins(
|
|||
// If a node is active then add the new node directly after the current one
|
||||
// newNodeData.position = [activeNode.position[0], activeNode.position[1] + 60];
|
||||
newNodeData.position = this.getNewNodePosition(
|
||||
[lastSelectedNode.position[0] + 180, lastSelectedNode.position[1]],
|
||||
[110, 0]
|
||||
[lastSelectedNode.position[0] + 150, lastSelectedNode.position[1]],
|
||||
[100, 0]
|
||||
);
|
||||
} else {
|
||||
// If no node is active find a free spot
|
||||
|
@ -1236,7 +1236,7 @@ export default mixins(
|
|||
type: 'n8n-nodes-base.start',
|
||||
typeVersion: 1,
|
||||
position: [
|
||||
100,
|
||||
250,
|
||||
300,
|
||||
] as XYPositon,
|
||||
parameters: {},
|
||||
|
|
Loading…
Reference in a new issue