mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Handle unknown nodes with no icon
This commit is contained in:
		| @@ -3773,9 +3773,10 @@ RED.view = (function() { | ||||
|                         var yp = d.h / 2 - (this.__labelLineCount__ / 2) * 24 + 13; | ||||
|  | ||||
|                         if ((!d._def.align && d.inputs !== 0 && d.outputs === 0) || "right" === d._def.align) { | ||||
|                             this.__iconGroup__.classList.add("red-ui-flow-node-icon-group-right"); | ||||
|                             this.__iconGroup__.setAttribute("transform", "translate("+(d.w-30)+",0)"); | ||||
|  | ||||
|                             if (this.__iconGroup__) { | ||||
|                                 this.__iconGroup__.classList.add("red-ui-flow-node-icon-group-right"); | ||||
|                                 this.__iconGroup__.setAttribute("transform", "translate("+(d.w-30)+",0)"); | ||||
|                             } | ||||
|                             this.__textGroup__.classList.add("red-ui-flow-node-label-right"); | ||||
|                             this.__textGroup__.setAttribute("transform", "translate("+(d.w-38)+","+yp+")"); | ||||
|                         } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user