mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure node is resized if its label changes
This commit is contained in:
parent
f030694ef4
commit
de4944cd83
@ -4006,10 +4006,10 @@ RED.view = (function() {
|
|||||||
var labelParts;
|
var labelParts;
|
||||||
if (d.resize || this.__hideLabel__ !== hideLabel || this.__label__ !== label || this.__outputs__.length !== d.outputs) {
|
if (d.resize || this.__hideLabel__ !== hideLabel || this.__label__ !== label || this.__outputs__.length !== d.outputs) {
|
||||||
labelParts = getLabelParts(label, "red-ui-flow-node-label");
|
labelParts = getLabelParts(label, "red-ui-flow-node-label");
|
||||||
this.__label__ = label;
|
if (labelParts.lines.length !== this.__labelLineCount__ || this.__label__ !== label) {
|
||||||
if (labelParts.lines.length !== this.__labelLineCount__) {
|
|
||||||
d.resize = true;
|
d.resize = true;
|
||||||
}
|
}
|
||||||
|
this.__label__ = label;
|
||||||
this.__labelLineCount__ = labelParts.lines.length;
|
this.__labelLineCount__ = labelParts.lines.length;
|
||||||
|
|
||||||
if (hideLabel) {
|
if (hideLabel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user