Fix Bug 40504

This commit is contained in:
Julia Radzhabova 2019-06-14 10:53:20 +03:00
parent 3eef24e5d5
commit 468ed1ef84
3 changed files with 8 additions and 1 deletions

View file

@ -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;

View file

@ -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
}
},

View file

@ -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();
}
},