From 981a9c4f8febc89dc697bd0393d09eac2565214e Mon Sep 17 00:00:00 2001 From: sakazuki Date: Sun, 3 Nov 2019 10:29:17 +0900 Subject: [PATCH] fix hideLabel handling --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index 3a789c57d..87dd69738 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -3063,7 +3063,11 @@ RED.view = (function() { var l = RED.utils.getNodeLabel(d); var ow = d.w; 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; }else{ if (hideLabel) {