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

Unfocused window causes timeout causes error #13

Open
nickyout opened this issue Jul 20, 2015 · 0 comments
Open

Unfocused window causes timeout causes error #13

nickyout opened this issue Jul 20, 2015 · 0 comments

Comments

@nickyout
Copy link
Contributor

When loadFonts is called and the window is not focused (Chrome 43), the timeout occurs. This results in the _testContainer to be detached from the DOM. Once the window regains focus, the SizeWatcher throws the Error Can't set scroll position of scroll watchers. SizeWatcher is not in the DOM tree..

Passing null for timeout will resolve this issue, but it took a while before I realised what was going on and I suspect there is a reason for the timeout feature to be enabled by default. I would like to suggest somehow detecting whether or not the window has focus, disabling the SizeWatcher, or maybe including this case in a FAQ on the bottom of the README. Or telling me what I was/am doing wrong.

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