From 5e8e739f7820b6ce99a867fbf69859e4cb815696 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Fri, 12 Jun 2020 16:07:46 +0900 Subject: [PATCH] fix position of empty group with multi-line label --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index 1471041b5..2a98bc0cb 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -4277,7 +4277,9 @@ RED.view = (function() { var labelPos = d.style["label-position"] || "nw"; d.h += h; if (labelPos[0] === "n") { - d.y -= h; + if (d.nodes.length > 0) { + d.y -= h; + } } }