Permalink
Browse files

Fixed bug when showing above element

  • Loading branch information...
1 parent 3b3842f commit b7cda1324ba3b995c6e86db51ed31a4b4f8b62e6 Brian Cray committed May 13, 2011
Showing with 13 additions and 2 deletions.
  1. +12 −1 tooltipsy.min.js
  2. +1 −1 tooltipsy.source.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -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);

0 comments on commit b7cda13

Please sign in to comment.