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

A polyfill for the Resize Observer API

Results 58 resize-observer-polyfill issues
Sort by recently updated
recently updated
newest added

## Summary The types added to `global` by importing `'resize-observer-polyfill'` clash with Typescript's own typings for `ResizeObserver` in `lib.dom.d.ts`. This issue makes it very inconvenient to use this package. ```ts...

Hi, I have a question about the test cases. ``` `https://github.com/que-etc/resize-observer-polyfill/blob/master/tests/node/ResizeObserver.spec.node.js` vs `https://github.com/que-etc/resize-observer-polyfill/blob/master/tests/ResizeObserver.spec.js` ``` Now our test case is distributed into two types: `bare jasmine` and `jasmine with karma`. From...

https://github.com/que-etc/resize-observer-polyfill/blob/a3ae98bcd34e972b92d9e40e8b974a75399503e8/src/ResizeObserverController.js#L162-L169 Here this triggers `refresh`, which makes all ResizeObservers check for size changes on _any_ change of _anything_ in the DOM. This seems like it may be a little heavy....

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

``` Compiling TypeScript sources through NGC ERROR: node_modules/resize-observer-polyfill/src/index.d.ts:19:18 - error TS2717: Subsequent property declarations must have the same type. Property 'contentRect' must be of type 'DOMRectReadOnly', but here has type...

RE: #80 Updating `DOMRectReadOnly` based on the declaration [in typescript's `lib.dom`.](https://github.com/microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L4070)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...

dependencies

If this is intended to be used as a [ponyfill](https://github.com/sindresorhus/ponyfill) (global object not overwritten), then this will be shipped to the browser in some shape or form, alongside the native...

Closes #78 This pull request enables the `ResizeObserver` polyfill to be used with targets inside the shadow roots and same origin iframes. The key implementation details: 1. A "root" is...

In typescript (with webpack), a default import doesn't work: ```typescript import ResizeObserver from 'resize-observer-polyfill'; ``` but a star import or an `import = require` import do work: ```typescript import *...