瀏覽代碼

Internal: Further cleanup after API adjustment.

Marek Lewandowski 6 年之前
父節點
當前提交
6b64105acc

+ 2 - 2
packages/ckeditor5-widget/src/widgetresize.js

@@ -86,7 +86,7 @@ export default class WidgetResize extends Plugin {
 
 		this._observer.listenTo( domDocument, 'mousemove', ( event, domEventData ) => {
 			if ( this._activeResizer ) {
-				this._activeResizer.updateSize( domEventData, this.editor );
+				this._activeResizer.updateSize( domEventData );
 			}
 		} );
 
@@ -100,7 +100,7 @@ export default class WidgetResize extends Plugin {
 
 		const redrawFocusedResizer = () => {
 			if ( this._visibleResizer ) {
-				this._visibleResizer.redraw( null );
+				this._visibleResizer.redraw();
 			}
 		};
 

+ 1 - 1
packages/ckeditor5-widget/src/widgetresize/resizer.js

@@ -81,7 +81,7 @@ export default class Resizer {
 		this.decorate( 'updateSize' );
 
 		this.on( 'commit', event => {
-			// State might not be initialized (#5195).
+			// State might not be initialized.In this case prevent further handling and make sure that resizer is cleaned up (#5195).
 			if ( !this.state.proposedWidth ) {
 				this._cleanup();
 				event.stop();