Browse Source

Update src/dom/resizeobserver.js

Co-Authored-By: Piotrek Koszuliński <pkoszulinski@gmail.com>
Aleksander Nowodzinski 5 years ago
parent
commit
c509911f94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-utils/src/dom/resizeobserver.js

+ 1 - 1
packages/ckeditor5-utils/src/dom/resizeobserver.js

@@ -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)