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

Commit

Permalink
Fixed container positioning when within scrolling container
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 13, 2011
1 parent d18ea6b commit e6e1e22
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Wed Jul 13 18:37:25 2011 +0100
* Date: Wed Jul 13 19:10:57 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -1721,7 +1721,7 @@ PLUGINS = QTIP.plugins = {
while(parent = parent.offsetParent());

// Compensate for containers scroll if it also has an offsetParent
if(container[0] !== docBody || deep > 1) { scroll( container, 1 ); }
if(container[0] !== docBody && deep > 1) { scroll( container, 1 ); }

// Adjust for position.fixed tooltips (and also iOS scroll bug in v3.2 - v4.0)
if((PLUGINS.iOS < 4.1 && PLUGINS.iOS > 3.1) || (!PLUGINS.iOS && fixed)) { scroll( $(window), -1 ); }
Expand Down
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: Wed Jul 13 18:37:25 2011 +0100
* Date: Wed Jul 13 19:10:57 2011 +0100
*/

/* Core qTip styles */
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: Wed Jul 13 18:37:25 2011 +0100
* Date: Wed Jul 13 19:10:57 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -1721,7 +1721,7 @@ PLUGINS = QTIP.plugins = {
while(parent = parent.offsetParent());

// Compensate for containers scroll if it also has an offsetParent
if(container[0] !== docBody || deep > 1) { scroll( container, 1 ); }
if(container[0] !== docBody && deep > 1) { scroll( container, 1 ); }

// Adjust for position.fixed tooltips (and also iOS scroll bug in v3.2 - v4.0)
if((PLUGINS.iOS < 4.1 && PLUGINS.iOS > 3.1) || (!PLUGINS.iOS && fixed)) { scroll( $(window), -1 ); }
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

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 @@ -1658,7 +1658,7 @@ PLUGINS = QTIP.plugins = {
while(parent = parent.offsetParent());

// Compensate for containers scroll if it also has an offsetParent
if(container[0] !== docBody || deep > 1) { scroll( container, 1 ); }
if(container[0] !== docBody && deep > 1) { scroll( container, 1 ); }

// Adjust for position.fixed tooltips (and also iOS scroll bug in v3.2 - v4.0)
if((PLUGINS.iOS < 4.1 && PLUGINS.iOS > 3.1) || (!PLUGINS.iOS && fixed)) { scroll( $(window), -1 ); }
Expand Down

0 comments on commit e6e1e22

Please sign in to comment.