Commit 1c6ebc7e authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

DEICH-4909 tooltip position style fix

parent 3ecc4feb
......@@ -22,8 +22,8 @@ export function tooltip(node, { text, html }) {
})
function position() {
const { top, right, bottom } = node.getBoundingClientRect()
tooltip.style.top = `${(top + bottom) / 2}px`
const { top, right } = node.getBoundingClientRect()
tooltip.style.top = `${(top+window.pageYOffset)}px`
tooltip.style.left = `${right}px`
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment