Tooltip on SVG element
Created by: gasaki
Tooltip is not working properly on SVG elements in Firefox, left position is always 0. It appears to be a Firefox bug as reported https://bugzilla.mozilla.org/show_bug.cgi?id=649285 .
I changed lines 198 and 199 in bootstrap-tooltip (getPosition) from:
width: this.$element[0].offsetWidth , height: this.$element[0].offsetHeight
to:
width: this.$element[0].getBBox().width , height: this.$element[0].getBBox().height
Now it works.