Skip to content

Commit

Permalink
top should stay on top
Browse files Browse the repository at this point in the history
  • Loading branch information
jayenashar committed Aug 30, 2015
1 parent 846752a commit e4bf592
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
6 changes: 4 additions & 2 deletions intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,11 @@
windowSize = _getWinSize();
switch (currentTooltipPosition) {
case 'top':
tooltipLayer.style.left = '15px';
tooltipLayer.style.top = '-' + (tooltipOffset.height + 10) + 'px';
arrowLayer.className = 'introjs-arrow bottom';

var tooltipLayerStyleLeft = 15;
_checkRight(targetOffset, tooltipLayerStyleLeft, tooltipOffset, windowSize, tooltipLayer);
tooltipLayer.style.bottom = (targetOffset.height + 20) + 'px';
break;
case 'right':
tooltipLayer.style.left = (targetOffset.width + 20) + 'px';
Expand Down
Loading

0 comments on commit e4bf592

Please sign in to comment.