1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix hideLabel handling

This commit is contained in:
sakazuki 2019-11-03 10:29:17 +09:00
parent 22dd2cd084
commit 981a9c4f8f

View File

@ -3063,7 +3063,11 @@ RED.view = (function() {
var l = RED.utils.getNodeLabel(d); var l = RED.utils.getNodeLabel(d);
var ow = d.w; var ow = d.w;
if (vertical) { if (vertical) {
d.w = Math.max(node_width,20*(Math.ceil((calculateTextWidth(l, "red-ui-flow-node-label", 50)+(d._def.inputs>0?7:0))/20)),(d.outputs||0) * 15 ); if (hideLabel) {
d.w = node_height
} else {
d.w = Math.max(node_width,20*(Math.ceil((calculateTextWidth(l, "red-ui-flow-node-label", 50)+(d._def.inputs>0?7:0))/20)),(d.outputs||0) * 15 );
}
d.h = node_height; d.h = node_height;
}else{ }else{
if (hideLabel) { if (hideLabel) {