Fix disabling rotation for smart arts/images/charts
This commit is contained in:
parent
2fe8250093
commit
e1b7a107ca
|
@ -147,12 +147,12 @@
|
|||
<div class="separator horizontal"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td class="padding-small">
|
||||
<label class="header"><%= scope.textRotation %></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td>
|
||||
<table cols="2" style="width: 100%;">
|
||||
<tr>
|
||||
|
|
|
@ -819,8 +819,8 @@ define([
|
|||
this._noApply = true;
|
||||
|
||||
this.disableControls(this._locked, !shapeprops.get_CanFill());
|
||||
this.hideShapeOnlySettings(shapeprops.get_FromChart() || shapeprops.get_FromImage());
|
||||
this.hideRotationSettings(shapeprops.get_FromSmartArt());
|
||||
this.hideShapeOnlySettings(shapeprops.get_FromChart() || !!shapeprops.get_FromImage());
|
||||
this.hideRotationSettings(shapeprops.get_FromChart() || !!shapeprops.get_FromImage() || shapeprops.get_FromSmartArt());
|
||||
|
||||
var hidechangetype = shapeprops.get_FromChart() || shapeprops.get_FromSmartArt() || shapetype=='line' || shapetype=='bentConnector2' || shapetype=='bentConnector3'
|
||||
|| shapetype=='bentConnector4' || shapetype=='bentConnector5' || shapetype=='curvedConnector2'
|
||||
|
@ -1216,7 +1216,7 @@ define([
|
|||
this._noApply = false;
|
||||
}
|
||||
this.hideNoFormSettings(control_props);
|
||||
this.ShapeOnlySeparator.toggleClass('hidden', (control_props || this._state.HideShapeOnlySettings || this._state.HideRotationSettings)==true);
|
||||
this.ShapeOnlySeparator.toggleClass('hidden', (control_props || this._state.HideShapeOnlySettings || this._state.HideRotationSettings)===true);
|
||||
},
|
||||
|
||||
btnDirectionRedraw: function(slider, gradientColorsStr) {
|
||||
|
|
|
@ -142,17 +142,17 @@
|
|||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td class="padding-small">
|
||||
<div class="separator horizontal"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td class="padding-small">
|
||||
<label class="header"><%= scope.textRotation %></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td>
|
||||
<table cols="2" style="width: 100%;">
|
||||
<tr>
|
||||
|
|
|
@ -765,8 +765,8 @@ define([
|
|||
var shapetype = props.asc_getType();
|
||||
|
||||
this.disableControls(this._locked==true, props.get_CanFill() !== true);
|
||||
this.hideShapeOnlySettings(props.get_FromChart() || props.get_FromImage());
|
||||
this.hideRotationSettings(props.get_FromSmartArt());
|
||||
this.hideShapeOnlySettings(props.get_FromChart() || !!props.get_FromImage());
|
||||
this.hideRotationSettings(props.get_FromChart() || !!props.get_FromImage() || props.get_FromSmartArt());
|
||||
|
||||
var hidechangetype = props.get_FromChart() || props.get_FromSmartArt() || shapetype=='line' || shapetype=='bentConnector2' || shapetype=='bentConnector3'
|
||||
|| shapetype=='bentConnector4' || shapetype=='bentConnector5' || shapetype=='curvedConnector2'
|
||||
|
|
|
@ -142,17 +142,17 @@
|
|||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td class="padding-small">
|
||||
<div class="separator horizontal"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td class="padding-small">
|
||||
<label class="header"><%= scope.textRotation %></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="shape-only shape-rotation">
|
||||
<tr class="shape-rotation">
|
||||
<td>
|
||||
<table cols="2" style="width: 100%;">
|
||||
<tr>
|
||||
|
|
|
@ -761,8 +761,8 @@ define([
|
|||
this._noApply = true;
|
||||
|
||||
this.disableControls(this._locked, !shapeprops.asc_getCanFill());
|
||||
this.hideShapeOnlySettings(shapeprops.asc_getFromChart() || shapeprops.asc_getFromImage());
|
||||
this.hideRotationSettings(shapeprops.asc_getFromSmartArt());
|
||||
this.hideShapeOnlySettings(shapeprops.asc_getFromChart() || !!shapeprops.asc_getFromImage());
|
||||
this.hideRotationSettings(shapeprops.asc_getFromChart() || !!shapeprops.asc_getFromImage() || shapeprops.asc_getFromSmartArt());
|
||||
|
||||
var hidechangetype = shapeprops.get_FromChart() || shapeprops.asc_getFromSmartArt() || shapetype=='line' || shapetype=='bentConnector2' || shapetype=='bentConnector3'
|
||||
|| shapetype=='bentConnector4' || shapetype=='bentConnector5' || shapetype=='curvedConnector2'
|
||||
|
|
Loading…
Reference in a new issue