Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

ResizeObserver issue #1011

@scaljeri

Description

@scaljeri

I'm using ResizeObserver for which I use a polyfill because its browser support is limited. Now, recently, chrome 64 natively supports this API with the result that changes trigged by ResizeObserver don't trigger changedetection in my angular app.

stackblitz demo

const observer = new window.ResizeObserver(entries => {
          this.observedWidth = entries[0].contentRect.width;  // Outside a zone??!!
});
observer.observe(this.resizable.nativeElement);

The expected behaviour can be seen in firefox/safari and chrome 63 of course.

Now I don't know that much about Zone.js. but I would expect Zone.js to take care of this?

For more details:
stackoverflow question

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions