Skip to content

Commit

Permalink
Fix edge awareness bug in Joyride.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Oct 26, 2012
1 parent 996e32a commit 0d14ec6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'timer' : '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',
'tip' : '<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',
'wrapper' : '<div class="joyride-content-wrapper"></div>',
'button' : '<a href="#" class="joyride-next-tip"></a>'
'button' : '<a href="#" class="small button joyride-next-tip"></a>'
}
},

Expand Down Expand Up @@ -320,7 +320,7 @@
},

set_next_tip : function () {
settings.$next_tip = $('.joyride-tip-guide[data-index=' + settings.$li.index() + ']');
settings.$next_tip = $('.joyride-tip-guide[data-index=' + settings.$li.index() + ']').first();
},

set_target : function () {
Expand Down Expand Up @@ -414,7 +414,7 @@
} else if (methods.left()) {

settings.$next_tip.css({
top: settings.$target.offset().top - settings.$target.outerHeight(),
top: settings.$target.offset().top,
left: (settings.$target.offset().left - settings.$next_tip.outerWidth() - nub_height)});

methods.nub_position($nub, settings.tipSettings.nubPosition, 'right');
Expand Down

0 comments on commit 0d14ec6

Please sign in to comment.