Permalink
Browse files

make position rely on getBBox (svg/vrml) when available

  • Loading branch information...
1 parent 9fe119e commit 4951f46c976cd7f5c26015ee7f510335fa76f72a @zyll committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/javascripts/jquery.tipsy.js
@@ -26,7 +26,7 @@
$tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
$tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
- var pos = $.extend({}, this.$element.offset(), {
+ var pos = $.extend({}, this.$element.offset(), this.$element[0].getBBox ? this.$element[0].getBBox() : {
width: this.$element[0].offsetWidth,
height: this.$element[0].offsetHeight
});

0 comments on commit 4951f46

Please sign in to comment.