From 99f7070c7a928eb49b8c5674e9af8d247b8e9112 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 11 Apr 2019 13:09:28 +0300 Subject: [PATCH] Fix Bug 41189 --- apps/documenteditor/main/app/view/DocumentHolder.js | 2 +- apps/documenteditor/main/app/view/ImageSettings.js | 1 + apps/documenteditor/mobile/app/controller/edit/EditImage.js | 2 +- apps/presentationeditor/main/app/view/DocumentHolder.js | 2 +- apps/presentationeditor/main/app/view/ImageSettings.js | 1 + apps/presentationeditor/mobile/app/controller/edit/EditImage.js | 2 +- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 1 + apps/spreadsheeteditor/main/app/view/ImageSettings.js | 1 + apps/spreadsheeteditor/mobile/app/controller/edit/EditImage.js | 2 +- 9 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 3c9fb27f2..60dae62dc 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -2293,7 +2293,7 @@ define([ var properties = new Asc.asc_CImgProperty(); properties.put_Width(originalImageSize.get_ImageWidth()); properties.put_Height(originalImageSize.get_ImageHeight()); - + properties.put_ResetCrop(true); me.api.ImgApply(properties); me.fireEvent('editcomplete', this); diff --git a/apps/documenteditor/main/app/view/ImageSettings.js b/apps/documenteditor/main/app/view/ImageSettings.js index 19790b635..22ac089b2 100644 --- a/apps/documenteditor/main/app/view/ImageSettings.js +++ b/apps/documenteditor/main/app/view/ImageSettings.js @@ -397,6 +397,7 @@ define([ var properties = new Asc.asc_CImgProperty(); properties.put_Width(w); properties.put_Height(h); + properties.put_ResetCrop(true); this.api.ImgApply(properties); this.fireEvent('editcomplete', this); } diff --git a/apps/documenteditor/mobile/app/controller/edit/EditImage.js b/apps/documenteditor/mobile/app/controller/edit/EditImage.js index 7098f8969..f53b874ec 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditImage.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditImage.js @@ -197,7 +197,7 @@ define([ properties.put_Width(imgsize.get_ImageWidth()); properties.put_Height(imgsize.get_ImageHeight()); - + properties.put_ResetCrop(true); me.api.ImgApply(properties); } }, diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index dc9986181..5cba80fb6 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -2731,7 +2731,7 @@ define([ properties.put_Width(originalImageSize.get_ImageWidth()); properties.put_Height(originalImageSize.get_ImageHeight()); - + properties.put_ResetCrop(true); me.api.ImgApply(properties); } diff --git a/apps/presentationeditor/main/app/view/ImageSettings.js b/apps/presentationeditor/main/app/view/ImageSettings.js index 2b5d3a479..447502f11 100644 --- a/apps/presentationeditor/main/app/view/ImageSettings.js +++ b/apps/presentationeditor/main/app/view/ImageSettings.js @@ -286,6 +286,7 @@ define([ var properties = new Asc.asc_CImgProperty(); properties.put_Width(w); properties.put_Height(h); + properties.put_ResetCrop(true); this.api.ImgApply(properties); this.fireEvent('editcomplete', this); } diff --git a/apps/presentationeditor/mobile/app/controller/edit/EditImage.js b/apps/presentationeditor/mobile/app/controller/edit/EditImage.js index 332c2fbef..99202a8d9 100644 --- a/apps/presentationeditor/mobile/app/controller/edit/EditImage.js +++ b/apps/presentationeditor/mobile/app/controller/edit/EditImage.js @@ -124,7 +124,7 @@ define([ properties.put_Width(imgsize.get_ImageWidth()); properties.put_Height(imgsize.get_ImageHeight()); - + properties.put_ResetCrop(true); me.api.ImgApply(properties); } }, diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 8b5684d96..ab2c528a1 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -2969,6 +2969,7 @@ define([ var properties = new Asc.asc_CImgProperty(); properties.asc_putWidth(w); properties.asc_putHeight(h); + properties.put_ResetCrop(true); this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); diff --git a/apps/spreadsheeteditor/main/app/view/ImageSettings.js b/apps/spreadsheeteditor/main/app/view/ImageSettings.js index bca7fe23b..8f251fb6d 100644 --- a/apps/spreadsheeteditor/main/app/view/ImageSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ImageSettings.js @@ -423,6 +423,7 @@ define([ var properties = new Asc.asc_CImgProperty(); properties.asc_putWidth(w); properties.asc_putHeight(h); + properties.put_ResetCrop(true); this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this); } diff --git a/apps/spreadsheeteditor/mobile/app/controller/edit/EditImage.js b/apps/spreadsheeteditor/mobile/app/controller/edit/EditImage.js index a3f3a41d9..d36fe488f 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/edit/EditImage.js +++ b/apps/spreadsheeteditor/mobile/app/controller/edit/EditImage.js @@ -160,7 +160,7 @@ define([ properties.put_Width(imgSize.get_ImageWidth()); properties.put_Height(imgSize.get_ImageHeight()); - + properties.put_ResetCrop(true); me.api.asc_setGraphicObjectProps(properties); } },