Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Small fix to offset calculcation that was causing a bug in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jan 25, 2011
1 parent 37cffc5 commit 81635a8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Jan 24 18:33:20 2011 +0000
* Date: Mon Jan 24 19:29:04 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Jan 24 18:33:20 2011 +0000
* Date: Mon Jan 24 19:29:04 2011 +0000
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -189,7 +189,7 @@ function QTip(target, options, id, attr)
pos = offset(container);
pos.left *= -1; pos.top *= -1;
}
else if($.css(container, 'overflow') !== 'visible') {
else if(container !== docBody && $.css(container, 'overflow') !== 'visible') {
pos.left -= container.scrollLeft;
pos.top -= container.scrollTop;
}
Expand Down
10 changes: 5 additions & 5 deletions dist/jquery.qtip.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.qtip.pack.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -148,7 +148,7 @@ function QTip(target, options, id, attr)
pos = offset(container);
pos.left *= -1; pos.top *= -1;
}
else if($.css(container, 'overflow') !== 'visible') {
else if(container !== docBody && $.css(container, 'overflow') !== 'visible') {
pos.left -= container.scrollLeft;
pos.top -= container.scrollTop;
}
Expand Down

0 comments on commit 81635a8

Please sign in to comment.