1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Set dimension value for tour guide

This commit is contained in:
Kazuhito Yokoi 2021-11-18 15:38:49 +09:00
parent 3e0f080ea7
commit 3edbf52bc6

View File

@ -364,6 +364,8 @@ RED.tourGuide = (function() {
if (step.fallback) { if (step.fallback) {
focus.one("mouseenter", function(evt) { focus.one("mouseenter", function(evt) {
setTimeout(function() { setTimeout(function() {
var pos = targetElement[0].getBoundingClientRect();
var dimension = Math.max(50, Math.max(pos.width,pos.height)*1.5);
focus.css({ focus.css({
width: (4*dimension)+"px", width: (4*dimension)+"px",
height: (4*dimension)+"px" height: (4*dimension)+"px"