Skip to content

Commit 81e8d94

Browse files
committed
Merge pull request usablica#226 from nanego/master
Only add top marging when step numbers are visible
2 parents 8e5d094 + eb491e8 commit 81e8d94

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)