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:
parent
1b5654001c
commit
fbfc74e5ca
@ -4362,6 +4362,9 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
|
|||||||
node.n.moved = true;
|
node.n.moved = true;
|
||||||
node.n.x -= dx - mouse_position[0];
|
node.n.x -= dx - mouse_position[0];
|
||||||
node.n.y -= dy - mouse_position[1];
|
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.dx = node.n.x - mouse_position[0];
|
||||||
node.dy = node.n.y - mouse_position[1];
|
node.dy = node.n.y - mouse_position[1];
|
||||||
if (node.n.type === "group") {
|
if (node.n.type === "group") {
|
||||||
|
Loading…
Reference in New Issue
Block a user