mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #379 from hindessm/fix-undefined-class-on-labels
Correct logic to avoid 'undefined' label style being inserted.
This commit is contained in:
commit
6076be011a
@ -1209,7 +1209,7 @@ RED.view = (function() {
|
|||||||
.attr('class',function(d){
|
.attr('class',function(d){
|
||||||
return 'node_label'+
|
return 'node_label'+
|
||||||
(d._def.align?' node_label_'+d._def.align:'')+
|
(d._def.align?' node_label_'+d._def.align:'')+
|
||||||
(d._def.label?' '+(typeof d._def.labelStyle == "function" ? d._def.labelStyle.call(d):d._def.labelStyle):'') ;
|
(d._def.labelStyle?' '+(typeof d._def.labelStyle == "function" ? d._def.labelStyle.call(d):d._def.labelStyle):'') ;
|
||||||
});
|
});
|
||||||
thisNode.selectAll(".node_tools").attr("x",function(d){return d.w-35;}).attr("y",function(d){return d.h-20;});
|
thisNode.selectAll(".node_tools").attr("x",function(d){return d.w-35;}).attr("y",function(d){return d.h-20;});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user