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

Changed window/document references to be relative to the target #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Changed window/document references to be relative to the target #30

wants to merge 1 commit into from

Conversation

bedney
Copy link

@bedney bedney commented Dec 26, 2017

I have a situation whereby the ResizeObserver is executing in the main window, but the elements that need to be observed for resizing are being drawn in another frame. Therefore, hardcoding window and document references are a non-starter for me - I need to compute them from the element target.

This is my first attempt at this patch and is quite hacky. But it does demonstrate what I'm trying to do here.

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.

None yet

1 participant