1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

[groups] Ensure newly imported nodes have width/height

This commit is contained in:
Nick O'Leary 2020-04-02 11:57:46 +01:00
parent 1b5654001c
commit fbfc74e5ca
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -4362,6 +4362,9 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
node.n.moved = true;
node.n.x -= dx - mouse_position[0];
node.n.y -= dy - mouse_position[1];
node.n.w = node_width;
node.n.h = node_height;
node.n.resize = true;
node.dx = node.n.x - mouse_position[0];
node.dy = node.n.y - mouse_position[1];
if (node.n.type === "group") {