Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Update src/dom/resizeobserver.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Piotrek Koszuliński <pkoszulinski@gmail.com>
  • Loading branch information
oleq and Reinmar committed Jan 29, 2020
1 parent 9089b9a commit a207a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/resizeobserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const RESIZE_CHECK_INTERVAL = 100;
* const observer = new ResizeObserver( editableElement, entry => {
* console.log( 'The editable element has been resized in DOM.' );
* console.log( entry.target ); // -> editableElement
* console.log( entry.contentRect.width ); // -> e.g. 423px
* console.log( entry.contentRect.width ); // -> e.g. '423px'
* } )
*
* By default, it uses the [native DOM resize observer](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
Expand Down

0 comments on commit a207a93

Please sign in to comment.