mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle unknown nodes with no icon
This commit is contained in:
parent
4dd68452b4
commit
9ce5210c33
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user