From 817d6338f1e2c542f921c2a01fa32230f4771172 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 5 Aug 2021 15:34:28 +0300 Subject: [PATCH] [DE] Fix position image setting in form settings --- .../documenteditor/main/app/template/FormSettings.template | 1 - apps/documenteditor/main/app/view/FormSettings.js | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/main/app/template/FormSettings.template b/apps/documenteditor/main/app/template/FormSettings.template index 4d082243a..c63a68c60 100644 --- a/apps/documenteditor/main/app/template/FormSettings.template +++ b/apps/documenteditor/main/app/template/FormSettings.template @@ -85,7 +85,6 @@ -
diff --git a/apps/documenteditor/main/app/view/FormSettings.js b/apps/documenteditor/main/app/view/FormSettings.js index 25815135c..85017a0da 100644 --- a/apps/documenteditor/main/app/view/FormSettings.js +++ b/apps/documenteditor/main/app/view/FormSettings.js @@ -942,7 +942,7 @@ define([ this.sldrPreviewPositionX.setValue(val); this._state.imgPositionX = val; } - val = pictPr.get_ShiftY() * 100; + val = 100 - (pictPr.get_ShiftY() * 100); if (this._state.imgPositionY !== val) { this.sldrPreviewPositionY.setValue(val); this._state.imgPositionY = val; @@ -1205,7 +1205,7 @@ define([ val = this._state.imgPositionX / 100; pictPr.put_ShiftX(val); } else { - val = this._state.imgPositionY / 100; + val = (100 - this._state.imgPositionY) / 100; pictPr.put_ShiftY(val); } props.put_PictureFormPr(pictPr); @@ -1252,8 +1252,7 @@ define([ textNever: 'Never', textTooBig: 'Image is Too Big', textTooSmall: 'Image is Too Small', - textScale: 'When to scale', - textButton: 'Button' + textScale: 'When to scale' }, DE.Views.FormSettings || {})); }); \ No newline at end of file