Fix Bug 40504
This commit is contained in:
parent
3eef24e5d5
commit
468ed1ef84
|
@ -1294,13 +1294,14 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
|
|||
|
||||
var shapeprops = props.get_ShapeProperties();
|
||||
var chartprops = props.get_ChartProperties();
|
||||
var pluginGuid = props.asc_getPluginGuid();
|
||||
|
||||
this.btnOriginalSize.setVisible(!(shapeprops || chartprops));
|
||||
this.btnOriginalSize.setDisabled(props.get_ImageUrl()===null || props.get_ImageUrl()===undefined);
|
||||
this.btnsCategory[5].setVisible(shapeprops!==null && !shapeprops.get_FromChart()); // Shapes
|
||||
this.btnsCategory[6].setVisible(shapeprops!==null && !shapeprops.get_FromChart()); // Margins
|
||||
this.btnsCategory[3].setDisabled(props.get_FromGroup()); // Wrapping
|
||||
this.btnsCategory[2].setVisible(!chartprops); // Rotation
|
||||
this.btnsCategory[2].setVisible(!chartprops && (pluginGuid === null || pluginGuid === undefined)); // Rotation
|
||||
|
||||
if (shapeprops) {
|
||||
this._objectType = Asc.c_oAscTypeSelectElement.Shape;
|
||||
|
|
|
@ -262,6 +262,9 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
|
|||
|
||||
value = props.asc_getDescription();
|
||||
this.textareaAltDescription.val(value ? value : '');
|
||||
|
||||
var pluginGuid = props.asc_getPluginGuid();
|
||||
this.btnsCategory[1].setVisible(pluginGuid === null || pluginGuid === undefined); // Rotation
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -141,6 +141,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ImageSettingsAdvanced.temp
|
|||
this.chFlipHor.setValue(props.asc_getFlipH());
|
||||
this.chFlipVert.setValue(props.asc_getFlipV());
|
||||
|
||||
var pluginGuid = props.asc_getPluginGuid();
|
||||
this.btnsCategory[0].setVisible(pluginGuid === null || pluginGuid === undefined); // Rotation
|
||||
|
||||
this._changedProps = new Asc.asc_CImgProperty();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue