Merge pull request #4426 from node-red/4044-group-bb-import

Ensure group w/h are imported if present
This commit is contained in:
Nick O'Leary 2023-11-07 17:39:30 +00:00 committed by GitHub
commit 923339c1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2198,6 +2198,12 @@ RED.nodes = (function() {
} }
node._config.x = node.x; node._config.x = node.x;
node._config.y = node.y; node._config.y = node.y;
if (n.hasOwnProperty('w')) {
node.w = n.w
}
if (n.hasOwnProperty('h')) {
node.h = n.h
}
} else if (n.type.substring(0,7) === "subflow") { } else if (n.type.substring(0,7) === "subflow") {
var parentId = n.type.split(":")[1]; var parentId = n.type.split(":")[1];
var subflow = subflow_denylist[parentId]||subflow_map[parentId]||getSubflow(parentId); var subflow = subflow_denylist[parentId]||subflow_map[parentId]||getSubflow(parentId);