|
|
@@ -146,17 +146,14 @@ export default class ResizeContext {
|
|
|
|
|
|
this._dismissShadow();
|
|
|
|
|
|
- editor.model.change( writer => {
|
|
|
- writer.setAttribute( WIDTH_ATTRIBUTE_NAME, newWidth, modelEntry );
|
|
|
- } );
|
|
|
-
|
|
|
this.redraw();
|
|
|
|
|
|
- // Again, render will most likely change image size, so resizers needs a redraw.
|
|
|
- editor.editing.view.once( 'render', () => this.redraw() );
|
|
|
-
|
|
|
this.resizeStrategy.commit( editor );
|
|
|
|
|
|
+ editor.model.change( writer => {
|
|
|
+ writer.setAttribute( WIDTH_ATTRIBUTE_NAME, newWidth, modelEntry );
|
|
|
+ } );
|
|
|
+
|
|
|
this._cleanupContext();
|
|
|
}
|
|
|
|