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

Commit

Permalink
Ensure tooltip positioning animation doesn't occur on first show
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Dec 8, 2011
1 parent 8bdb12b commit 562472d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 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: Sun Nov 27 15:05:59 2011 +0000
* Date: Thu Dec 8 18:11:21 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -828,7 +828,7 @@ function QTip(target, options, id, attr)

// Show tooltip if needed
if(options.show.ready || show) {
self.toggle(TRUE, cache.event);
self.toggle(TRUE, cache.event, FALSE);
}

next(); // Move on to next method in queue
Expand Down Expand Up @@ -989,7 +989,7 @@ function QTip(target, options, id, attr)
}

// Update the tooltip position
self.reposition(event);
self.reposition(event, arguments[2]);

// Hide other tooltips if tooltip is solo, using it as the context
if((callback.solo = !!opts.solo)) { $(selector, opts.solo).not(tooltip).qtip('hide', callback); }
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: Sun Nov 27 15:05:59 2011 +0000
* Date: Thu Dec 8 18:11:21 2011 +0000
*/

/* Core qTip styles */
Expand Down
6 changes: 3 additions & 3 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: Sun Nov 27 15:05:59 2011 +0000
* Date: Thu Dec 8 18:11:21 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -828,7 +828,7 @@ function QTip(target, options, id, attr)

// Show tooltip if needed
if(options.show.ready || show) {
self.toggle(TRUE, cache.event);
self.toggle(TRUE, cache.event, FALSE);
}

next(); // Move on to next method in queue
Expand Down Expand Up @@ -989,7 +989,7 @@ function QTip(target, options, id, attr)
}

// Update the tooltip position
self.reposition(event);
self.reposition(event, arguments[2]);

// Hide other tooltips if tooltip is solo, using it as the context
if((callback.solo = !!opts.solo)) { $(selector, opts.solo).not(tooltip).qtip('hide', callback); }
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 src/core.js
Expand Up @@ -765,7 +765,7 @@ function QTip(target, options, id, attr)

// Show tooltip if needed
if(options.show.ready || show) {
self.toggle(TRUE, cache.event);
self.toggle(TRUE, cache.event, FALSE);
}

next(); // Move on to next method in queue
Expand Down Expand Up @@ -926,7 +926,7 @@ function QTip(target, options, id, attr)
}

// Update the tooltip position
self.reposition(event);
self.reposition(event, arguments[2]);

// Hide other tooltips if tooltip is solo, using it as the context
if((callback.solo = !!opts.solo)) { $(selector, opts.solo).not(tooltip).qtip('hide', callback); }
Expand Down

0 comments on commit 562472d

Please sign in to comment.