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

Commit

Permalink
Fixed regression which was causing adjust.x/y values to behave incorr…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
Craga89 committed Nov 30, 2010
1 parent 54b230a commit de242e5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 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 30 19:19:11 2010 +0000
* Date: Tue Nov 30 19:39:43 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 30 19:19:11 2010 +0000
* Date: Tue Nov 30 19:39:43 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 @@ -1036,10 +1036,10 @@ function QTip(target, options, id)
overflowRight = posLeft + elemWidth - viewport.width - viewportScroll;

if(overflowLeft > 0) {
position.left -= myWidth + adjustX;
position.left -= myWidth - adjustX;
}
else if(overflowRight > 0) {
position.left -= (my.x === 'center' ? -1 : 1) * (myWidth + adjustX);
position.left -= (my.x === 'center' ? -1 : 1) * (myWidth - adjustX);
}

return position.left - posLeft;
Expand All @@ -1053,10 +1053,10 @@ function QTip(target, options, id)
overflowBottom = posTop + elemHeight - viewport.height - viewportScroll;

if(overflowTop > 0) {
position.top -= myHeight + adjustY;
position.top -= myHeight - adjustY;
}
else if(overflowBottom > 0) {
position.top -= (my.y === 'center' ? -1 : 1) * (myHeight + adjustY);
position.top -= (my.y === 'center' ? -1 : 1) * (myHeight - adjustY);
}

return position.top - posTop;
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.qtip.min.js

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

0 comments on commit de242e5

Please sign in to comment.