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

Commit

Permalink
Removed IE specific tip adjustment that seems not to be needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Apr 13, 2011
1 parent d9af3a9 commit 218639b
Show file tree
Hide file tree
Showing 6 changed files with 15 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: Wed Apr 13 11:48:47 2011 +0100
* Date: Wed Apr 13 12:35:15 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: Wed Apr 13 11:48:47 2011 +0100
* Date: Wed Apr 13 12:35:15 2011 +0100
*/

/* 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: Wed Apr 13 11:48:47 2011 +0100
* Date: Wed Apr 13 12:35:15 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 @@ -2347,10 +2347,11 @@ function Tip(qTip, command)
});

// Adjust for tip dimensions
position[ corner[precedance] ] -= dimensions[ precedance === 'x' ? 'width' : 'height' ] +
position[ corner[precedance] ] -= dimensions[ precedance === 'x' ? 'width' : 'height' ];

/* IE specific adjustment */
($.browser.msie && parseFloat($.browser.version, 10) == 8 && border && /^(b|r)/i.test(corner.string()) ? 1 : 0);
/* IE specific adjustment - DEPRECATED... doesn't seem to need it anymore!
($.browser.msie && parseFloat($.browser.version, 10) == 8 && border && /^(b|r)/i.test(corner.string()) ? 0 : 0);
*/

// Set and return new position
if(set) { tip.css({ top: '', bottom: '', left: '', right: '', margin: '' }).css(position); }
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/tips.js
Expand Up @@ -477,10 +477,11 @@ function Tip(qTip, command)
});

// Adjust for tip dimensions
position[ corner[precedance] ] -= dimensions[ precedance === 'x' ? 'width' : 'height' ] +
position[ corner[precedance] ] -= dimensions[ precedance === 'x' ? 'width' : 'height' ];

/* IE specific adjustment */
($.browser.msie && parseFloat($.browser.version, 10) == 8 && border && /^(b|r)/i.test(corner.string()) ? 1 : 0);
/* IE specific adjustment - DEPRECATED... doesn't seem to need it anymore!
($.browser.msie && parseFloat($.browser.version, 10) == 8 && border && /^(b|r)/i.test(corner.string()) ? 0 : 0);
*/

// Set and return new position
if(set) { tip.css({ top: '', bottom: '', left: '', right: '', margin: '' }).css(position); }
Expand Down

0 comments on commit 218639b

Please sign in to comment.