mirror of https://github.com/node-red/node-red.git
Shift status text left if no shape specified
parent
419f26db87
commit
2937b25d6d
|
@ -3008,11 +3008,12 @@ RED.view = (function() {
|
|||
if (!showStatus || !d.status) {
|
||||
thisNode.selectAll(".node_status_group").style("display","none");
|
||||
} else {
|
||||
thisNode.selectAll(".node_status_group").style("display","inline").attr("transform","translate(3,"+(d.h+3)+")");
|
||||
var fill = status_colours[d.status.fill]; // Only allow our colours for now
|
||||
if (d.status.shape == null && fill == null) {
|
||||
thisNode.selectAll(".node_status").style("display","none");
|
||||
thisNode.selectAll(".node_status_group").style("display","inline").attr("transform","translate(-14,"+(d.h+3)+")");
|
||||
} else {
|
||||
thisNode.selectAll(".node_status_group").style("display","inline").attr("transform","translate(3,"+(d.h+3)+")");
|
||||
var style;
|
||||
if (d.status.shape == null || d.status.shape == "dot") {
|
||||
style = {
|
||||
|
|
Loading…
Reference in New Issue