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

position service does not include margin left of body when calculating tooltip offset #291

Open
joshunger opened this issue Jan 25, 2016 · 0 comments

Comments

@joshunger
Copy link

When you have a tooltip that is appended to the body (tooltip-append-to-body="1") the position service does not include the margin left of the body causing the offset and left to be incorrect.

Something like this fixes the issue for me -

offset.left = Math.round(offset.left - parseFloat(window.getComputedStyle(document.body).marginLeft));

Top might also need to be fixed.

The position service appears to be significantly out of date compared to the Angular UI Bootstrap position service. There might be other bug fixes already fixed in Angular UI Bootstrap that would be worth grabbing.

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

1 participant