jquery-powertip icon indicating copy to clipboard operation
jquery-powertip copied to clipboard

Fixup/compensate for chrome zoomed offset bug

Open jasco opened this issue 7 years ago • 3 comments

Issue #153

jasco avatar Feb 14 '17 02:02 jasco

Could you go into more detail on this comment:

However, it appears that document.body serves equally well as a references and avoid needing to manipulate DOM.

I'm really hesitant to add additional elements to the page if there is any other option. My concern is that we don't know if there will be CSS or JavaScript acting on it, and if it causes bugs on some peoples sites it would be very hard to diagnose.

stevenbenner avatar Feb 26 '17 18:02 stevenbenner

I understand your concern. To avoid inadvertently breaking code, perhaps we can make it an optional feature that could be enabled for those who encounter the problem and need a workaround.

I had a usually working technique that did not require adding an additional element by using the body element as its reference point. The technique was insufficient when (if memory serves) there was a margin applied to either html or body. Adding an absolute element worked even in those cases.

jasco avatar Apr 06 '17 23:04 jasco

Could you submit a pull request for the alternate version?

This problem is a bug that is likely affecting people right now, so it's higher priority than supporting unexpected body styling. If there is a safe fix that doesn't have backwards compatibility issues then I'd like to get it in for the next release.

stevenbenner avatar Apr 09 '17 20:04 stevenbenner