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

Commit

Permalink
Tips plugin now only adds ui-tooltip-accessible class when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Sep 16, 2010
1 parent 36afa6b commit 6c33ef1
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 60 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: Thu Sep 16 19:48:07 2010 +0100
* Date: Thu Sep 16 19:53:26 2010 +0100
*/

.ui-tooltip-accessible{
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: Thu Sep 16 19:48:07 2010 +0100
* Date: Thu Sep 16 19:53:26 2010 +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 @@ -1662,9 +1662,9 @@ function Tip(qTip, command)
// Determine adjustments
offset = size[ (corner.precedance === 'x') ? 'width' : 'height' ];
if(border) {
wrapper.addClass('ui-tooltip-accessible');
if(!tooltip.is(':visible')) { tooltip.addClass('ui-tooltip-accessible'); }
offset -= parseInt(wrapper.css('border-' + corner[ corner.precedance ] + '-width'), 10) || 0;
wrapper.removeClass('ui-tooltip-accessible');
tooltip.removeClass('ui-tooltip-accessible');
}

// Adjust secondary corners
Expand Down

0 comments on commit 6c33ef1

Please sign in to comment.