react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

Recalculate Position on Content Change

Open tillbecks opened this issue 3 years ago • 1 comments

Hi, I've implemented a Tooltip which changes its content via its getContent function. The content changes when you press the left mouse button and changes back when you release it. The content changes as intended, but the position of the Tooltip doesn't change at all. To be exact the position of the left upper corner stays the same through the content changes. The position is corrected when e.g. I'm moving the mouse, but I want it to update together with the content.. I'd be really glad if someone could help me on this c:

tillbecks avatar Mar 24 '22 18:03 tillbecks

Kind of a fix is to update the content every millisecond, but I don't think this is a good solution.

tillbecks avatar Mar 25 '22 16:03 tillbecks