mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix position of empty group with multi-line label
This commit is contained in:
parent
81a4f42673
commit
5e8e739f78
@ -4277,9 +4277,11 @@ RED.view = (function() {
|
|||||||
var labelPos = d.style["label-position"] || "nw";
|
var labelPos = d.style["label-position"] || "nw";
|
||||||
d.h += h;
|
d.h += h;
|
||||||
if (labelPos[0] === "n") {
|
if (labelPos[0] === "n") {
|
||||||
|
if (d.nodes.length > 0) {
|
||||||
d.y -= h;
|
d.y -= h;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
g.attr("transform","translate("+d.x+","+d.y+")")
|
g.attr("transform","translate("+d.x+","+d.y+")")
|
||||||
g.selectAll(".red-ui-flow-group-outline")
|
g.selectAll(".red-ui-flow-group-outline")
|
||||||
|
Loading…
Reference in New Issue
Block a user