Skip to content

Fix ResizeSensor to fire when used in a CustomElement #206

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

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Fix ResizeSensor to fire when used in a CustomElement #206

merged 1 commit into from
Jan 5, 2018

Conversation

JeanRemiDelteil
Copy link
Contributor

Calling Reset() just after initialization does not fire the 'scroll' events.
Instead, call it in the next frame. This also works with native elements and simple DOM.

Should fix #191

Calling Reset() just after initialization does not fire the 'scroll' events.
Instead, call it in the next frame. This also works with native elements and simple DOM.
@marcj marcj merged commit 2f6959d into marcj:master Jan 5, 2018
@marcj
Copy link
Owner

marcj commented Jan 5, 2018

Good catch, thanks!

@JeanRemiDelteil JeanRemiDelteil deleted the patch-1 branch January 8, 2018 09:52
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

Successfully merging this pull request may close these issues.

Support for Web-Component?
2 participants