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

Improve Shadow DOM support for Web Components

Open TremayneChrist opened this issue 5 years ago • 4 comments

Currently the library only listens to mutations on the main document level. This means that any non-user actioned DOM changes inside a shadow root will not be noticed.

Most of the time this will not be an issue, as user interaction is usually the main cause for resizing to take place. That being said, there are some circumstances where this will cause issues.

TremayneChrist avatar Mar 18 '19 16:03 TremayneChrist

This could be implemented by collecting a list of observable documents, rather than just listening to events on the main document.

TremayneChrist avatar Jan 22 '20 06:01 TremayneChrist

https://github.com/clauderic/resize-observer/commit/2e94a3f912306d6fc6820e682084e671f4858260

spb-web avatar Jan 31 '20 12:01 spb-web

This will have to be added to the next milestone (v4), as it will probably need to be part of the refactoring effort.

cc: @goremikin

TremayneChrist avatar Mar 04 '20 14:03 TremayneChrist

Initial support has been added in the v4.0.0-1 release. Feedback welcome!

TremayneChrist avatar Jul 31 '21 13:07 TremayneChrist