Skip to content

Commit e1a039f

Browse files
committed
bottom should stay on bottom even when the tooltipLayer changes size (like when a font loads)
1 parent f39e18b commit e1a039f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521

522522
arrowLayer.className = 'introjs-arrow top-middle';
523523
tooltipLayer.style.left = (targetElementOffset.width / 2 - tooltipOffset.width / 2) + 'px';
524-
tooltipLayer.style.bottom = '-' + (tooltipOffset.height + 10) + 'px';
524+
tooltipLayer.style.top = (targetElementOffset.height + 20) + 'px';
525525
break;
526526
case 'bottom-left-aligned':
527527
// Bottom-left-aligned is the same as the default bottom

minified/intro.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)