From 8bdba9178a1749c3e247e149e558ad9c83598a8c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 22 May 2019 00:10:55 +0100 Subject: [PATCH] Line-up view tooltip text (again) having fixed size calculation --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 70c09d188..b62a41698 100755 --- 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 @@ -2075,7 +2075,7 @@ RED.view = (function() { var labelHeight2 = labelHeight - 4; var path; var lx; - var ly = -labelHeight/2+3; + var ly = -labelHeight/2; var anchor; if (direction === "left") { path = "M0 0 l -5 -5 v -"+(labelHeight1)+" q 0 -2 -2 -2 h -"+labelWidth+" q -2 0 -2 2 v "+(labelHeight2)+" q 0 2 2 2 h "+labelWidth+" q 2 0 2 -2 v -"+(labelHeight1)+" l 5 -5"; @@ -2088,7 +2088,7 @@ RED.view = (function() { } else if (direction === "top") { path = "M0 0 l 5 -5 h "+(labelWidth1)+" q 2 0 2 -2 v -"+labelHeight+" q 0 -2 -2 -2 h -"+(labelWidth2)+" q -2 0 -2 2 v "+labelHeight+" q 0 2 2 2 h "+(labelWidth1)+" l 5 5" lx = -labelWidth/2 + 6; - ly = -labelHeight-lineHeight+10; + ly = -labelHeight-lineHeight+12; anchor = "start"; } tooltip.append("path").attr("d",path);