Skip to content

Commit a6d4415

Browse files
committed
Merge pull request usablica#448 from traviswingo/bugfix/arrowLayer-logic
only apply .introjs-arrow.left if the tooltip was not re-positioned
2 parents ca545e3 + 052b432 commit a6d4415

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
@@ -480,8 +480,9 @@
480480
// Modify so that the bottom of the tooltip connects with the target
481481
arrowLayer.className = "introjs-arrow left-bottom";
482482
tooltipLayer.style.top = "-" + (tooltipHeight - targetOffset.height - 20) + "px"
483+
} else {
484+
arrowLayer.className = 'introjs-arrow left';
483485
}
484-
arrowLayer.className = 'introjs-arrow left';
485486
break;
486487
case 'left':
487488
if (this._options.showStepNumbers == true) {

0 commit comments

Comments
 (0)