Protip icon indicating copy to clipboard operation
Protip copied to clipboard

Incorrect positioning on SVG element (mobile)

Open ChrisLindeman opened this issue 5 years ago • 1 comments

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.

ChrisLindeman avatar Mar 15 '20 02:03 ChrisLindeman

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

wintercounter avatar Mar 24 '20 20:03 wintercounter