Do the -webkit-transform:translate in js.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 29 Mar 2019 23:08:40 +0000 (00:08 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 29 Mar 2019 23:08:40 +0000 (00:08 +0100)
commitf7e54650a8ce0e624aa544c23245c963199a919a
tree21716ca161379d6127059be1cf19f7e176ca670e
parent9286d6ea91ee394f5ecd47eb71c0b237e5174345
Do the -webkit-transform:translate in js.

The -webkit-transform:translate(-4px, -4px) was added to move the hint
labels a little bit from the hinted links so that they do not cover to
much of the link text. But in this way the labels where sometime only
partial visible if the hinted element is near to the top or left.

This patch removes the css translate and calculates the offset direct
in the hints.js. So we can now ensure that the hint labels are not
placed behind the top or left of the viewport.
src/scripts/hints.css
src/scripts/hints.js