tooltip icon indicating copy to clipboard operation
tooltip copied to clipboard

How to configure align offset?

Open abelski21 opened this issue 7 years ago • 1 comments

I'm a bit confused on how do we set the offsetX and offsetY in the align prop. What I understand is that we can use this align prop to position the tooltip to the target node. But when I pass in a specific value of this, it shows in the browser's development tool that the left and top position of the tooltip element is different. I know the tooltip container is relative to the body but how do we set the align offset properly? I also tried setting getTooltipContainer but I can't still figuring out how to set the position properly. It seems like there area some calculations going on after passing the offset value. Hoping someone can elaborate the use of it.

abelski21 avatar Apr 12 '18 14:04 abelski21

Could you demonstrate your issue on https://codesanbox.io?

yesmeck avatar Apr 16 '18 09:04 yesmeck