Skip to content

Commit

Permalink
Merge pull request #114 from kbanman/pos-fix
Browse files Browse the repository at this point in the history
Correct tooltip alignment based on nub position
  • Loading branch information
Jordan Humphreys committed May 10, 2013
2 parents ed4fbe7 + 56ce930 commit 65a10a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jquery.joyride-2.0.3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* jQuery Foundation Joyride Plugin 2.0.3
* http://foundation.zurb.com
* Copyright 2012, ZURB
Expand Down Expand Up @@ -473,6 +473,10 @@
top: (settings.$target.offset().top + nub_height + settings.$target.outerHeight()),
left: settings.$target.offset().left});

if (/right/i.test(settings.tipSettings.nubPosition)) {
settings.$next_tip.css('left', settings.$target.offset().left - settings.$next_tip.outerWidth() + settings.$target.outerWidth());
}

methods.nub_position($nub, settings.tipSettings.nubPosition, 'top');

} else if (methods.top()) {
Expand Down

0 comments on commit 65a10a7

Please sign in to comment.