Fix Bug 27605

This commit is contained in:
Julia Radzhabova 2021-06-22 15:42:21 +03:00
parent 263cc0c27d
commit 4789fd68f0
11 changed files with 12 additions and 0 deletions

View file

@ -2378,6 +2378,7 @@ define([
properties.put_Width(originalImageSize.get_ImageWidth());
properties.put_Height(originalImageSize.get_ImageHeight());
properties.put_ResetCrop(true);
properties.put_Rot(0);
me.api.ImgApply(properties);
me.fireEvent('editcomplete', this);

View file

@ -410,6 +410,7 @@ define([
properties.put_Width(w);
properties.put_Height(h);
properties.put_ResetCrop(true);
properties.put_Rot(0);
this.api.ImgApply(properties);
this.fireEvent('editcomplete', this);
}

View file

@ -174,6 +174,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
el: $('#image-advanced-button-original-size')
});
this.btnOriginalSize.on('click', _.bind(function(btn, e) {
this.spnAngle.setValue(0);
this.spnWidth.setValue(this.sizeOriginal.width, true);
this.spnHeight.setValue(this.sizeOriginal.height, true);
this._nRatio = this.sizeOriginal.width/this.sizeOriginal.height;
@ -181,6 +182,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
this._changedProps.put_Height(Common.Utils.Metric.fnRecalcToMM(this.spnHeight.getNumberValue()));
this._changedProps.put_Width(Common.Utils.Metric.fnRecalcToMM(this.spnWidth.getNumberValue()));
this._changedProps.put_ResetCrop(true);
this._changedProps.put_Rot(0);
}
}, this));

View file

@ -30,6 +30,7 @@ class EditImageController extends Component {
properties.put_Width(imgSize.get_ImageWidth());
properties.put_Height(imgSize.get_ImageHeight());
properties.put_ResetCrop(true);
properties.put_Rot(0);
api.ImgApply(properties);
}
}

View file

@ -2887,6 +2887,7 @@ define([
properties.put_Width(originalImageSize.get_ImageWidth());
properties.put_Height(originalImageSize.get_ImageHeight());
properties.put_ResetCrop(true);
properties.put_Rot(0);
me.api.ImgApply(properties);
}

View file

@ -300,6 +300,7 @@ define([
properties.put_Width(w);
properties.put_Height(h);
properties.put_ResetCrop(true);
properties.put_Rot(0);
this.api.ImgApply(properties);
this.fireEvent('editcomplete', this);
}

View file

@ -133,6 +133,7 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
el: $('#image-advanced-button-original-size')
});
this.btnOriginalSize.on('click', _.bind(function(btn, e) {
this.spnAngle.setValue(0);
this.spnWidth.setValue(this.sizeOriginal.width, true);
this.spnHeight.setValue(this.sizeOriginal.height, true);
this._nRatio = this.sizeOriginal.width/this.sizeOriginal.height;

View file

@ -79,6 +79,7 @@ class EditImageController extends Component {
properties.put_Width(imgsize.get_ImageWidth());
properties.put_Height(imgsize.get_ImageHeight());
properties.put_ResetCrop(true);
properties.put_Rot(0);
api.ImgApply(properties);
}

View file

@ -3512,6 +3512,7 @@ define([
properties.asc_putWidth(w);
properties.asc_putHeight(h);
properties.put_ResetCrop(true);
properties.put_Rot(0);
this.api.asc_setGraphicObjectProps(properties);
Common.NotificationCenter.trigger('edit:complete', this.documentHolder);

View file

@ -428,6 +428,7 @@ define([
properties.asc_putWidth(w);
properties.asc_putHeight(h);
properties.put_ResetCrop(true);
properties.put_Rot(0);
this.api.asc_setGraphicObjectProps(properties);
Common.NotificationCenter.trigger('edit:complete', this);
}

View file

@ -51,6 +51,7 @@ class EditImageController extends Component {
properties.put_Width(imgsize.get_ImageWidth());
properties.put_Height(imgsize.get_ImageHeight());
properties.put_ResetCrop(true);
properties.put_Rot(0);
api.asc_setGraphicObjectProps(properties);
}