Skip to content

Commit eb491e8

Browse files
committed
Do not add top marging if step numbers are hidden
1 parent 4f20edc commit eb491e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

intro.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@
359359
arrowLayer.className = 'introjs-arrow left';
360360
break;
361361
case 'left':
362-
tooltipLayer.style.top = '15px';
362+
if (this._options.showStepNumbers == true) {
363+
tooltipLayer.style.top = '15px';
364+
}
363365
tooltipLayer.style.right = (_getOffset(targetElement).width + 20) + 'px';
364366
arrowLayer.className = 'introjs-arrow right';
365367
break;

0 commit comments

Comments
 (0)