Skip to content

Commit 052b432

Browse files
committed
only apply introns-arrow left if the tooltip was not re-positioned
When the tooltip falls below the window, we reposition it to push up into the existing viewport. This fix also adds in the proper arrow styling so that it falls on the bottom of this tooltip and points to the actual content.
1 parent f39e18b commit 052b432

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intro.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@
473473
// Modify so that the bottom of the tooltip connects with the target
474474
arrowLayer.className = "introjs-arrow left-bottom";
475475
tooltipLayer.style.top = "-" + (tooltipHeight - targetOffset.height - 20) + "px"
476+
} else {
477+
arrowLayer.className = 'introjs-arrow left';
476478
}
477-
arrowLayer.className = 'introjs-arrow left';
478479
break;
479480
case 'left':
480481
if (this._options.showStepNumbers == true) {

0 commit comments

Comments
 (0)