|
@@ -70,6 +70,13 @@ export default class Resizer {
|
|
|
*/
|
|
*/
|
|
|
this._viewResizerWrapper = null;
|
|
this._viewResizerWrapper = null;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * The width of resized {@link module:widget/widgetresize~ResizerOptions#viewElement viewElement} before the resizing started.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @private
|
|
|
|
|
+ * @member {Number|String|undefined} _initialViewWidth
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @observable
|
|
* @observable
|
|
|
*/
|
|
*/
|
|
@@ -139,7 +146,7 @@ export default class Resizer {
|
|
|
|
|
|
|
|
this._sizeUI.bindToState( this._options, this.state );
|
|
this._sizeUI.bindToState( this._options, this.state );
|
|
|
|
|
|
|
|
- this.initialViewWidth = this._options.viewElement.getStyle( 'width' );
|
|
|
|
|
|
|
+ this._initialViewWidth = this._options.viewElement.getStyle( 'width' );
|
|
|
|
|
|
|
|
this.state.begin( domResizeHandle, this._getHandleHost(), this._getResizeHost() );
|
|
this.state.begin( domResizeHandle, this._getHandleHost(), this._getResizeHost() );
|
|
|
}
|
|
}
|
|
@@ -274,7 +281,7 @@ export default class Resizer {
|
|
|
const editingView = this._options.editor.editing.view;
|
|
const editingView = this._options.editor.editing.view;
|
|
|
|
|
|
|
|
editingView.change( writer => {
|
|
editingView.change( writer => {
|
|
|
- writer.setStyle( 'width', this.initialViewWidth, this._options.viewElement );
|
|
|
|
|
|
|
+ writer.setStyle( 'width', this._initialViewWidth, this._options.viewElement );
|
|
|
} );
|
|
} );
|
|
|
}
|
|
}
|
|
|
|
|
|