Skip to content

Commit

Permalink
Fixed bug when showing above element
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Cray committed May 13, 2011
1 parent 3b3842f commit b7cda13
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion tooltipsy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tooltipsy.source.js
Expand Up @@ -56,7 +56,7 @@
})(base.$el.offset()),
(function (pos) {
if (base.settings.offset[1] < 0) {
return (pos.top - window.pageYOffset) - base.$el.outerHeight() - base.height - Math.abs(base.settings.offset[1]);
return (pos.top - window.pageYOffset) - Math.abs(base.settings.offset[1]) - base.height;
}
else if (base.settings.offset[1] == 0) {
return (pos.top - window.pageYOffset) - ((base.height - base.$el.outerHeight()) / 2);
Expand Down

0 comments on commit b7cda13

Please sign in to comment.