| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks good, just wondering if aligning text would make any sense for displays with device pixel ratio > 1.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Currently, texts in a tooltip are aligned to 'top', but some browsers (in particular, Safari on Mac and IE/Edge on Win) add extra space above the texts, and they are shifted down a few pixels as reported in #3393. As the alignment of legend items were fixed in #4318, this PR makes similar changes to tooltip items by using textBaseline = 'middle'.
As shown below, the changes only affect the results in Safari (Mac), IE (Win) and Edge (Win).
Master: https://jsfiddle.net/nagix/v8qhgczu/
This PR: https://jsfiddle.net/nagix/k9gzv5wf/
Fixes #3393