resize-observer-polyfill icon indicating copy to clipboard operation
resize-observer-polyfill copied to clipboard

Changed window/document references to be relative to the target

Open bedney opened this issue 8 years ago • 0 comments

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.

bedney avatar Dec 26 '17 23:12 bedney