Merge pull request #3265 from kazuhitoyokoi/master-fixtourguide

Set dimension value for tour guide
This commit is contained in:
Nick O'Leary
2021-11-22 23:23:03 +00:00
committed by GitHub

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"