Fix clearing group label

This commit is contained in:
Nick O'Leary 2020-06-18 22:25:00 +01:00
parent 19ffe8f308
commit 6f407750f5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 5 additions and 2 deletions

View File

@ -4267,11 +4267,12 @@ 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) {
var h = (d.labels.length -1) * 16;
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;
if (labelPos[0] === "n") {
@ -4357,6 +4358,8 @@ RED.view = (function() {
.attr("y", ypos);
ypos += 16;
});
} else {
g.selectAll(".red-ui-flow-group-label-text").remove();
}
}