[PE] Fix Bug 43473
This commit is contained in:
parent
33b073115f
commit
e79f40f0b0
|
@ -17,6 +17,11 @@
|
||||||
<button type="button" class="btn btn-text-default" id="image-button-original-size" style="width:100px;"><%= scope.textOriginalSize %></button>
|
<button type="button" class="btn btn-text-default" id="image-button-original-size" style="width:100px;"><%= scope.textOriginalSize %></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="padding-small" colspan=2>
|
||||||
|
<button type="button" class="btn btn-text-default" id="image-button-fit-slide" style="width:100px;"><%= scope.textFitSlide %></button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="padding-small" colspan=2>
|
<td class="padding-small" colspan=2>
|
||||||
<div id="image-button-crop" style="width: 100px;"></div>
|
<div id="image-button-crop" style="width: 100px;"></div>
|
||||||
|
|
|
@ -176,6 +176,12 @@ define([
|
||||||
this.btnCrop.menu.on('item:click', _.bind(this.onCropMenu, this));
|
this.btnCrop.menu.on('item:click', _.bind(this.onCropMenu, this));
|
||||||
this.lockedControls.push(this.btnCrop);
|
this.lockedControls.push(this.btnCrop);
|
||||||
|
|
||||||
|
this.btnFitSlide = new Common.UI.Button({
|
||||||
|
el: $('#image-button-fit-slide')
|
||||||
|
});
|
||||||
|
this.lockedControls.push(this.btnFitSlide);
|
||||||
|
this.btnFitSlide.on('click', _.bind(this.setFitSlide, this));
|
||||||
|
|
||||||
this.btnRotate270 = new Common.UI.Button({
|
this.btnRotate270 = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'rotate-270',
|
iconCls: 'rotate-270',
|
||||||
|
@ -378,6 +384,11 @@ define([
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setFitSlide: function() {
|
||||||
|
this.api && this.api.asc_FitImagesToSlide();
|
||||||
|
this.fireEvent('editcomplete', this);
|
||||||
|
},
|
||||||
|
|
||||||
onBtnRotateClick: function(btn) {
|
onBtnRotateClick: function(btn) {
|
||||||
var properties = new Asc.asc_CImgProperty();
|
var properties = new Asc.asc_CImgProperty();
|
||||||
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
properties.asc_putRotAdd((btn.options.value==1 ? 90 : 270) * 3.14159265358979 / 180);
|
||||||
|
@ -431,7 +442,8 @@ define([
|
||||||
textHintFlipH: 'Flip Horizontally',
|
textHintFlipH: 'Flip Horizontally',
|
||||||
textCrop: 'Crop',
|
textCrop: 'Crop',
|
||||||
textCropFill: 'Fill',
|
textCropFill: 'Fill',
|
||||||
textCropFit: 'Fit'
|
textCropFit: 'Fit',
|
||||||
|
textFitSlide: 'Fit to Slide'
|
||||||
|
|
||||||
}, PE.Views.ImageSettings || {}));
|
}, PE.Views.ImageSettings || {}));
|
||||||
});
|
});
|
|
@ -1244,6 +1244,7 @@
|
||||||
"PE.Views.ImageSettings.textCropFit": "Fit",
|
"PE.Views.ImageSettings.textCropFit": "Fit",
|
||||||
"PE.Views.ImageSettings.textEdit": "Edit",
|
"PE.Views.ImageSettings.textEdit": "Edit",
|
||||||
"PE.Views.ImageSettings.textEditObject": "Edit Object",
|
"PE.Views.ImageSettings.textEditObject": "Edit Object",
|
||||||
|
"PE.Views.ImageSettings.textFitSlide": "Fit to Slide",
|
||||||
"PE.Views.ImageSettings.textFlip": "Flip",
|
"PE.Views.ImageSettings.textFlip": "Flip",
|
||||||
"PE.Views.ImageSettings.textFromFile": "From File",
|
"PE.Views.ImageSettings.textFromFile": "From File",
|
||||||
"PE.Views.ImageSettings.textFromUrl": "From URL",
|
"PE.Views.ImageSettings.textFromUrl": "From URL",
|
||||||
|
|
Loading…
Reference in a new issue