-
Notifications
You must be signed in to change notification settings - Fork 98
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
sey-list incorrectly positioned when using appendTo #35
Comments
I would expect top and left values to be relative to the element being appended to, not to the body when appendTo is set. |
Should be fixed now. |
Top value is correct with |
Aha, bullseye only applies Would replacing the line 67 in bullseye with el.style.left = (context ? p.x - context.getBoundingClientRect().left : p.x) + 'px'; make sense? |
If you use the appendTo function to append the sey-list to something other than document.body, the left and right properties of the list are being set as if the list was still being appended directly to the body. This is easiest to see if you position an element that wraps the input field somewhere on the page, then set appendTo to point to that element. You'll notice top and left are being set to the position of that wrapper, but since the list is inside that wrapper, it ends up getting offset. Example:
http://cl.ly/fPjk
http://plnkr.co/HhRlVL5RNaZwDzwistkc
The text was updated successfully, but these errors were encountered: