From 1064e531f0322115713d2af2821da6c4611f3371 Mon Sep 17 00:00:00 2001 From: nakanishi Date: Wed, 17 Oct 2018 10:31:47 +0900 Subject: [PATCH] Adjust the fa icon position for the node with height --- packages/node_modules/@node-red/editor-client/src/js/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index ece448c64..a97f9fd17 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -1913,7 +1913,6 @@ RED.view = (function() { .attr("xlink:href",iconUrl) .attr("class","fa-lg") .attr("x",15) - .attr("y",21) .attr("stroke","none") .attr("fill","#ffffff") .attr("text-anchor","middle") @@ -2414,6 +2413,7 @@ RED.view = (function() { thisNode.selectAll(".node_icon").attr("y",function(d){return (d.h-d3.select(this).attr("height"))/2;}); thisNode.selectAll(".node_icon_shade").attr("height",function(d){return d.h;}); thisNode.selectAll(".node_icon_shade_border").attr("d",function(d){ return "M "+(("right" == d._def.align) ?0:30)+" 1 l 0 "+(d.h-2)}); + thisNode.selectAll(".fa-lg").attr("y",function(d){return (d.h+13)/2;}); thisNode.selectAll(".node_button").attr("opacity",function(d) { return (activeSubflow||!isButtonEnabled(d))?0.4:1