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

Commit

Permalink
Fixed CSS problem with last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jan 31, 2011
1 parent a2733e4 commit d40d518
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
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: Mon Jan 31 17:21:36 2011 +0000
* Date: Mon Jan 31 17:55:52 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 @@ -178,7 +178,7 @@ function QTip(target, options, id, attr)

function offset(elem, container) {
var pos = { left: 0, top: 0 },
type, addScroll, offsetParent, parentIsContainer;
type, addScroll = !$.fn.qtip.plugins.iOS, offsetParent, parentIsContainer;

if(container) {
if(container.offsetParent !== docBody) {
Expand Down Expand Up @@ -207,7 +207,7 @@ function QTip(target, options, id, attr)
parentIsContainer = offsetParent === container;

// Account for fixed containers
addScroll = offsetParent === docBody && type === 'fixed' ? TRUE : !$.fn.qtip.plugins.iOS;
if(offsetParent === docBody && type === 'fixed') { addScroll = TRUE; }

pos.left += elem.offsetLeft - (addScroll && offsetParent && !parentIsContainer ? offsetParent.scrollLeft : 0);
pos.top += elem.offsetTop - (addScroll && offsetParent && !parentIsContainer ? offsetParent.scrollTop : 0);
Expand Down Expand Up @@ -918,7 +918,7 @@ function QTip(target, options, id, attr)
self.reposition(event, 0);

// Hide other tooltips if tooltip is solo
if(opts.solo) { $(selector).not(tooltip).qtip('hide'); }
if(opts.solo) { $(selector).not(tooltip).qtip('hide', callback); }
}
else {
// Clear show timer if we're hiding
Expand Down Expand Up @@ -2527,7 +2527,7 @@ function Modal(qTip)
var elem = $(selector), overlay;

// Return if overlay is already rendered
if(elem.length) { return elems.overlay = elem; }
if(elem.length) { elems.overlay = elem; return elem; }

// Create document overlay
overlay = elems.overlay = $('<div />', {
Expand Down
1 change: 1 addition & 0 deletions dist/jquery.qtip.min.css

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

6 changes: 3 additions & 3 deletions src/core.js
Expand Up @@ -137,7 +137,7 @@ function QTip(target, options, id, attr)

function offset(elem, container) {
var pos = { left: 0, top: 0 },
type, addScroll, offsetParent, parentIsContainer;
type, addScroll = !$.fn.qtip.plugins.iOS, offsetParent, parentIsContainer;

if(container) {
if(container.offsetParent !== docBody) {
Expand Down Expand Up @@ -166,7 +166,7 @@ function QTip(target, options, id, attr)
parentIsContainer = offsetParent === container;

// Account for fixed containers
addScroll = offsetParent === docBody && type === 'fixed' ? TRUE : !$.fn.qtip.plugins.iOS;
if(offsetParent === docBody && type === 'fixed') { addScroll = TRUE; }

pos.left += elem.offsetLeft - (addScroll && offsetParent && !parentIsContainer ? offsetParent.scrollLeft : 0);
pos.top += elem.offsetTop - (addScroll && offsetParent && !parentIsContainer ? offsetParent.scrollTop : 0);
Expand Down Expand Up @@ -877,7 +877,7 @@ function QTip(target, options, id, attr)
self.reposition(event, 0);

// Hide other tooltips if tooltip is solo
if(opts.solo) { $(selector).not(tooltip).qtip('hide'); }
if(opts.solo) { $(selector).not(tooltip).qtip('hide', callback); }
}
else {
// Clear show timer if we're hiding
Expand Down
2 changes: 1 addition & 1 deletion src/modal.js
Expand Up @@ -51,7 +51,7 @@ function Modal(qTip)
var elem = $(selector), overlay;

// Return if overlay is already rendered
if(elem.length) { return elems.overlay = elem; }
if(elem.length) { elems.overlay = elem; return elem; }

// Create document overlay
overlay = elems.overlay = $('<div />', {
Expand Down

0 comments on commit d40d518

Please sign in to comment.