mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	fix hideLabel handling
This commit is contained in:
		| @@ -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) { | ||||||
|  |                                 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.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) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user