From 3edbf52bc62c6587f6a19ce15182e6e892414f3f Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Thu, 18 Nov 2021 15:38:49 +0900 Subject: [PATCH] Set dimension value for tour guide --- .../@node-red/editor-client/src/js/ui/tour/tourGuide.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js index 651020d21..3f81f1d68 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tour/tourGuide.js @@ -364,6 +364,8 @@ RED.tourGuide = (function() { if (step.fallback) { focus.one("mouseenter", function(evt) { setTimeout(function() { + var pos = targetElement[0].getBoundingClientRect(); + var dimension = Math.max(50, Math.max(pos.width,pos.height)*1.5); focus.css({ width: (4*dimension)+"px", height: (4*dimension)+"px"