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
1 changed files with 2 additions and 0 deletions

View File

@ -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"