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

Commit

Permalink
Fixed the order in which redraw is called to prevent dimension problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Mar 9, 2011
1 parent 797bc50 commit 3110fb1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 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 Mar 8 22:04:23 2011 +0000
* Date: Wed Mar 9 10:39:15 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
9 changes: 5 additions & 4 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 Mar 8 22:04:23 2011 +0000
* Date: Wed Mar 9 10:39:15 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 @@ -699,17 +699,17 @@ function QTip(target, options, id, attr)
'aria-atomic': TRUE
})
);
self.rendered = -1;

// Update title
self.rendered = -1;
if(title) {
createTitle();
updateTitle(title);
}

// Set proper rendered flag and update content
self.rendered = TRUE;
updateContent(content);
self.rendered = TRUE;

// Setup widget classes
setWidget();
Expand Down Expand Up @@ -746,7 +746,8 @@ function QTip(target, options, id, attr)
self.show(cache.event);
}

next(); // Move on
// Move on and redraw the tooltip properly
next(); self.redraw();
});

return self;
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.

7 changes: 4 additions & 3 deletions src/core.js
Expand Up @@ -657,17 +657,17 @@ function QTip(target, options, id, attr)
'aria-atomic': TRUE
})
);
self.rendered = -1;

// Update title
self.rendered = -1;
if(title) {
createTitle();
updateTitle(title);
}

// Set proper rendered flag and update content
self.rendered = TRUE;
updateContent(content);
self.rendered = TRUE;

// Setup widget classes
setWidget();
Expand Down Expand Up @@ -704,7 +704,8 @@ function QTip(target, options, id, attr)
self.show(cache.event);
}

next(); // Move on
// Move on and redraw the tooltip properly
next(); self.redraw();
});

return self;
Expand Down

0 comments on commit 3110fb1

Please sign in to comment.