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

Commit

Permalink
Another tip colour detection update
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed May 9, 2011
1 parent cadc79d commit 198cdcb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 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: Mon May 9 14:55:00 2011 +0100
* Date: Mon May 9 15:10:16 2011 +0100
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
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: Mon May 9 14:55:00 2011 +0100
* Date: Mon May 9 15:10:16 2011 +0100
*/

/* Fluid class for determining actual width in IE */
Expand Down
10 changes: 6 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: Mon May 9 14:55:00 2011 +0100
* Date: Mon May 9 15:10:16 2011 +0100
*/

"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 @@ -2250,12 +2250,14 @@ function Tip(qTip, command)
if(!border || invalid.test(border) || border === bodyBorder) {
color.border = colorElem.css(borderSide) || transparent;
if(invalid.test(color.border) || color.border === contentColour) {
color.border = transparent;
color.border = border;
}
}

// Reset background and border colours, and remove fluid class
// Reset background and border colours
$('*', tip).add(tip).css(backgroundColor, transparent).css('border', '');

// Remove fluid class
tooltip.removeClass(fluid);
},

Expand Down Expand Up @@ -2365,7 +2367,7 @@ function Tip(qTip, command)
context.lineWidth = border * 2;
context.lineJoin = 'miter';
context.miterLimit = 100;
context.stroke();
if(border) { context.stroke(); }
context.fill();
}

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.

8 changes: 5 additions & 3 deletions src/tips.js
Expand Up @@ -297,12 +297,14 @@ function Tip(qTip, command)
if(!border || invalid.test(border) || border === bodyBorder) {
color.border = colorElem.css(borderSide) || transparent;
if(invalid.test(color.border) || color.border === contentColour) {
color.border = transparent;
color.border = border;
}
}

// Reset background and border colours, and remove fluid class
// Reset background and border colours
$('*', tip).add(tip).css(backgroundColor, transparent).css('border', '');

// Remove fluid class
tooltip.removeClass(fluid);
},

Expand Down Expand Up @@ -412,7 +414,7 @@ function Tip(qTip, command)
context.lineWidth = border * 2;
context.lineJoin = 'miter';
context.miterLimit = 100;
context.stroke();
if(border) { context.stroke(); }
context.fill();
}

Expand Down

0 comments on commit 198cdcb

Please sign in to comment.