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

Commit

Permalink
Fixed width parsing issues in core and bgiframe plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Nov 18, 2010
1 parent cef4ebd commit a7e2270
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 42 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: Wed Nov 10 12:50:04 2010 +0000
* Date: Wed Nov 10 22:36:25 2010 +0000
*/

.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: Wed Nov 10 12:50:04 2010 +0000
* Date: Wed Nov 10 22:36:25 2010 +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 @@ -241,7 +241,7 @@ function QTip(target, options, id)
// Parse and simulate max and min width
max = parseInt(tooltip.css('max-width'), 10) || 0;
min = parseInt(tooltip.css('min-width'), 10) || 0;
newWidth = Math.min( Math.max(newWidth, min), max );
newWidth = max + min ? Math.min( Math.max(newWidth, min), max ) : newWidth;

// Set the new calculated width and if width has not numerical, grab new pixel width
tooltip.width(newWidth);
Expand Down Expand Up @@ -2461,7 +2461,7 @@ function BGIFrame(qTip)
tipAdjust, offset;

// Adjust border offset
offset = parseInt(tooltip.css('border-left-width'), 10);
offset = parseInt(tooltip.css('border-left-width'), 10) || 0;
offset = { left: -offset, top: -offset };

// Adjust for tips plugin
Expand Down

0 comments on commit a7e2270

Please sign in to comment.