Skip to content

Commit

Permalink
Merge pull request #4426 from node-red/4044-group-bb-import
Browse files Browse the repository at this point in the history
Ensure group w/h are imported if present
  • Loading branch information
knolleary committed Nov 7, 2023
2 parents 3f4d96f + 88e6c71 commit 923339c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/node_modules/@node-red/editor-client/src/js/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,12 @@ RED.nodes = (function() {
}
node._config.x = node.x;
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") {
var parentId = n.type.split(":")[1];
var subflow = subflow_denylist[parentId]||subflow_map[parentId]||getSubflow(parentId);
Expand Down

0 comments on commit 923339c

Please sign in to comment.