mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix clearing group label
This commit is contained in:
parent
19ffe8f308
commit
6f407750f5
@ -4267,10 +4267,11 @@ RED.view = (function() {
|
||||
d.labels = labelParts.lines;
|
||||
} else {
|
||||
d.minWidth = 40;
|
||||
d.labels = [];
|
||||
}
|
||||
}
|
||||
d.w = Math.max(d.minWidth,d.w);
|
||||
if (d.style.label && d.labels) {
|
||||
if (d.style.label && d.labels.length > 1) {
|
||||
var h = (d.labels.length-1) * 16;
|
||||
var labelPos = d.style["label-position"] || "nw";
|
||||
d.h += h;
|
||||
@ -4357,6 +4358,8 @@ RED.view = (function() {
|
||||
.attr("y", ypos);
|
||||
ypos += 16;
|
||||
});
|
||||
} else {
|
||||
g.selectAll(".red-ui-flow-group-label-text").remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user