Fix Bug 27605
This commit is contained in:
parent
263cc0c27d
commit
4789fd68f0
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue