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

Location of tooltip #5

Closed
PaulMcGuinness opened this issue Aug 1, 2018 · 2 comments
Closed

Location of tooltip #5

PaulMcGuinness opened this issue Aug 1, 2018 · 2 comments

Comments

@PaulMcGuinness
Copy link

When using this within nested

's in a page, the tooltip doesn't take into account the parent div's top / height.

I used this jQuery, but I'm sure you can make it cleaner....

y + $(this).parent()[0].getBoundingClientRect().top - $(this).parent()[0].getBoundingClientRect().height

@g1eb
Copy link
Owner

g1eb commented Aug 1, 2018

Thanks for letting me know! I'll take a look :)

@g1eb
Copy link
Owner

g1eb commented Aug 6, 2018

I've updated tooltip position to take parent element into account as per your suggestions - thanks!

v0.0.14

@g1eb g1eb closed this as completed Aug 6, 2018
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

2 participants