Fixed positioning bug of tooltip

Did not take position of SVG into account when displaying the
tooltip. This caused the tooltip to be displayed in the wrong
place when embeded in a page.