[PE] Bug 32442
This commit is contained in:
parent
7a650ebddb
commit
1f2f4cdcc5
|
@ -199,10 +199,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
|
||||||
|
|
||||||
this.btnOriginalSize.setDisabled(props.get_ImageUrl()===null || props.get_ImageUrl()===undefined);
|
this.btnOriginalSize.setDisabled(props.get_ImageUrl()===null || props.get_ImageUrl()===undefined);
|
||||||
|
|
||||||
var value = Common.localStorage.getItem("pe-settings-imageratio");
|
var value = props.asc_getLockAspect();
|
||||||
if (value===null || parseInt(value) == 1) {
|
this.btnRatio.toggle(value);
|
||||||
this.btnRatio.toggle(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (props.get_Position()) {
|
if (props.get_Position()) {
|
||||||
var Position = {X: props.get_Position().get_X(), Y: props.get_Position().get_Y()};
|
var Position = {X: props.get_Position().get_X(), Y: props.get_Position().get_Y()};
|
||||||
|
@ -216,13 +214,12 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
|
||||||
},
|
},
|
||||||
|
|
||||||
getSettings: function() {
|
getSettings: function() {
|
||||||
Common.localStorage.setItem("pe-settings-imageratio", (this.btnRatio.pressed) ? 1 : 0);
|
|
||||||
|
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
if (this.spnHeight.getValue()!=='')
|
if (this.spnHeight.getValue()!=='')
|
||||||
properties.put_Height(Common.Utils.Metric.fnRecalcToMM(this.spnHeight.getNumberValue()));
|
properties.put_Height(Common.Utils.Metric.fnRecalcToMM(this.spnHeight.getNumberValue()));
|
||||||
if (this.spnWidth.getValue()!=='')
|
if (this.spnWidth.getValue()!=='')
|
||||||
properties.put_Width(Common.Utils.Metric.fnRecalcToMM(this.spnWidth.getNumberValue()));
|
properties.put_Width(Common.Utils.Metric.fnRecalcToMM(this.spnWidth.getNumberValue()));
|
||||||
|
properties.asc_putLockAspect(this.btnRatio.pressed);
|
||||||
|
|
||||||
var Position = new Asc.CPosition();
|
var Position = new Asc.CPosition();
|
||||||
if (this.spnX.getValue() !== '')
|
if (this.spnX.getValue() !== '')
|
||||||
|
|
Loading…
Reference in a new issue