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

Positioning Doesn't Work on IE11 #21

Open
Dtphelan1 opened this issue Aug 8, 2017 · 0 comments
Open

Positioning Doesn't Work on IE11 #21

Dtphelan1 opened this issue Aug 8, 2017 · 0 comments

Comments

@Dtphelan1
Copy link

Hi,

There's an issue with the plugin not being able to properly position the suggestion portal on IE 11 (or any version of IE). Your computation of top and left offsets uses ScrollX and ScrollY which, when added to any number value, return NaN.

This might be fixed using window.pageXOffset and window.pageYOffset instead of window.scrollX and window.scrollY. As you can see here, using window.pageXOffset is better for cross-browser compatability.

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