Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choosing tooltip position #17

Open
MaximeAnsquer opened this issue May 2, 2017 · 2 comments
Open

Choosing tooltip position #17

MaximeAnsquer opened this issue May 2, 2017 · 2 comments

Comments

@MaximeAnsquer
Copy link

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
Copy link

Also, the position of tooltip is continuously getting changed.

@jaykanda
Copy link

jaykanda commented Oct 8, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants