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

Commit

Permalink
adjust.offset is now adjust.container and is enabled by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Nov 9, 2010
1 parent bab5b4a commit 396424d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 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: Tue Nov 9 17:49:22 2010 +0000
* Date: Tue Nov 9 18:00:33 2010 +0000
*/

.ui-tooltip-accessible{
Expand Down
10 changes: 5 additions & 5 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: Tue Nov 9 17:49:22 2010 +0000
* Date: Tue Nov 9 18:00:33 2010 +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 @@ -181,14 +181,14 @@ function QTip(target, options, id)
function offset(jElem) {
var elem = jElem[0],
pos = { left: 0, top: 0 },
absolute = !options.position.adjust.offset;
absolute = !options.position.adjust.container;

if(absolute && elem.offsetParent) {
if(elem.offsetParent) {
do {
pos.left += elem.offsetLeft;
pos.top += elem.offsetTop;
}
while(elem = elem.offsetParent);
while(elem = absolute ? elem.offsetParent : 0);
}

return pos;
Expand Down Expand Up @@ -1490,7 +1490,7 @@ $.fn.qtip.defaults = {
mouse: TRUE,
screen: FALSE,
resize: TRUE,
offset: FALSE
container: TRUE
},
effect: TRUE
},
Expand Down

0 comments on commit 396424d

Please sign in to comment.