Choosing tooltip position
Opened this issue · 2 comments
MaximeAnsquer commented
Hello,
is there a way to choose where the tooltip is positioned ?
I'd like it to be above the mouse.
Thank you very much.
codenameavi commented
Also, the position of tooltip is continuously getting changed.
jaykanda commented
in the tooltip.component.ts file just add window.scrollY inside the options object for y property
let options:ContentOptions = {
content : this.content,
cls : this.ngToolTipClass,
x : event.clientX,
y: event.clientY + window.scrollY,
offset : this.tooltipDisplayOffset
};
this will position the tooltip based on the cursor even if you scroll the page.