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

focusWithoutScrolling assumes only doc and body are scrollable #60

Open
royaldark opened this issue Jun 25, 2014 · 0 comments
Open

focusWithoutScrolling assumes only doc and body are scrollable #60

royaldark opened this issue Jun 25, 2014 · 0 comments

Comments

@royaldark
Copy link
Contributor

If the editor is placed in a scrollable element other than the document or body, focusWithoutScrolling behaves incorrectly. We place Wysihtml5 in a scrollable modal, but focusWithoutScrolling uses the underlying <body> element's scroll position, which is incorrect.

I'm not sure the best solution. It seems this may require a recursive DOM traversal saving every element's scroll property, then focusing, then setting each element back to its original value.

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