wintercounter / Protip

A new generation jQuery Tooltip plugin
http://protip.rocks
MIT License
359 stars 38 forks source link

Incorrect positioning on SVG element (mobile) #45

Open ChrisLindeman opened 4 years ago

ChrisLindeman commented 4 years ago

I'm calling protipShow() on an SVG element. It works fine on desktop. But on mobile (iOS), the "top" portion of its style returns a negative value, positioning it off the screen. If I instead target a non-SVG element, the positioning works fine on mobile.

wintercounter commented 4 years ago

As a workaround please wrap your SVG with an HTML element and use Protip on that.