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

Commit

Permalink
Added text-wrapping fix for gecko based mozilla browsers. Thanks Apar…
Browse files Browse the repository at this point in the history
…ajita!
  • Loading branch information
Craga89 committed Mar 28, 2011
1 parent 0f5059d commit 95ce67e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 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: Mon Mar 21 18:15:30 2011 +0000
* Date: Mon Mar 21 18:22:45 2011 +0000
*/

/* Fluid class for determining actual width in IE */
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: Mon Mar 21 18:15:30 2011 +0000
* Date: Mon Mar 21 18:22:45 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 @@ -1207,8 +1207,8 @@ function QTip(target, options, id, attr)
// Reset the width and add the fluid class to reset max/min
tooltip.css('width', 'auto').addClass(fluid);

// Grab our tooltip width
width = tooltip.width();
// Grab our tooltip width (add 1 so we don't get wrapping problems in Gecko)
width = tooltip.width() + ($.browser.mozilla ? 1 : 0);

// Parse our max/min properties
max = parseInt(tooltip.css('max-width'), 10) || 0;
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.

4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -1165,8 +1165,8 @@ function QTip(target, options, id, attr)
// Reset the width and add the fluid class to reset max/min
tooltip.css('width', 'auto').addClass(fluid);

// Grab our tooltip width
width = tooltip.width();
// Grab our tooltip width (add 1 so we don't get wrapping problems in Gecko)
width = tooltip.width() + ($.browser.mozilla ? 1 : 0);

// Parse our max/min properties
max = parseInt(tooltip.css('max-width'), 10) || 0;
Expand Down

0 comments on commit 95ce67e

Please sign in to comment.