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

Commit

Permalink
Fixed SVG bug caused by my code re-ordering... perhaps more sleep is …
Browse files Browse the repository at this point in the history
…needed!
  • Loading branch information
Craga89 committed Jan 24, 2011
1 parent 7d96034 commit e292f6d
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 69 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 Jan 24 13:13:33 2011 +0000
* Date: Mon Jan 24 14:02:30 2011 +0000
*/

/* Fluid class for determining actual width in IE */
Expand Down
7 changes: 4 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 Jan 24 13:13:33 2011 +0000
* Date: Mon Jan 24 14:02:30 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 @@ -2414,19 +2414,20 @@ $.fn.qtip.plugins.svg = function(svg, corner)
// Return if no method is found
if(!root.createSVGPoint) { return result; }

// Create our point variables
// Create our point var
point = root.createSVGPoint();
tPoint = point.matrixTransform(mtx);

// Adjust top and left
point.x = box.x;
point.y = box.y;
tPoint = point.matrixTransform(mtx);
result.offset.left = tPoint.x;
result.offset.top = tPoint.y;

// Adjust width and height
point.x += box.width;
point.y += box.height;
tPoint = point.matrixTransform(mtx);
result.width = tPoint.x - result.offset.left;
result.height = tPoint.y - result.offset.top;
}
Expand Down

0 comments on commit e292f6d

Please sign in to comment.