Skip to content
New issue

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

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

Already on GitHub? # to your account

Offset() vs Position() #8

Open
creativefctr opened this issue Oct 31, 2016 · 0 comments
Open

Offset() vs Position() #8

creativefctr opened this issue Oct 31, 2016 · 0 comments

Comments

@creativefctr
Copy link

Hi,
I had a problem when I added padding to a div inside a wrapper; spotlight would not detect the correct position and omitted the padding (showed the lighted box upper than where it should have been).
I checked the source code and replaced position() with offset() which solved the issue.
So it appears that it's better if spotlight checks for the parent element and if it's , then it should switch to more accurate and reliable offset() rather than the relative position() which may return wrong values.
Thanks

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

No branches or pull requests

1 participant