From decbd9dae356445e55e710f32677f5b7e4d12fc5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 14 Mar 2025 15:38:46 +0300 Subject: [PATCH] Fix bugs --- apps/pdfeditor/main/app/view/FormSettings.js | 10 +++++----- apps/pdfeditor/main/locale/en.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/pdfeditor/main/app/view/FormSettings.js b/apps/pdfeditor/main/app/view/FormSettings.js index 914b04d65b..b8a4c0250d 100644 --- a/apps/pdfeditor/main/app/view/FormSettings.js +++ b/apps/pdfeditor/main/app/view/FormSettings.js @@ -814,14 +814,14 @@ define([ onLayoutChanged: function(combo, record) { if (this.api && !this._noApply) { this._state.Layout = undefined; - this.api.SetButtonLayout(record.value); + this.api.SetButtonFieldLayout(record.value); this.fireEvent('editcomplete', this); } }, onChFit: function(field, newValue, oldValue, eOpts){ if (this.api && !this._noApply) { - this.api.SetButtonFitBounds(field.getValue()==='checked'); + this.api.SetButtonFieldFitBounds(field.getValue()==='checked'); this.fireEvent('editcomplete', this); } }, @@ -829,7 +829,7 @@ define([ onScaleChanged: function(combo, record) { if (this.api && !this._noApply) { this._state.Scale = undefined; - this.api.SetButtonScaleWhen(record.value); + this.api.SetButtonFieldScaleWhen(record.value); this.fireEvent('editcomplete', this); } }, @@ -837,7 +837,7 @@ define([ onHowScaleChanged: function(combo, record) { if (this.api && !this._noApply) { this._state.HowScale = undefined; - this.api.SetButtonScaleHow(record.value); + this.api.SetButtonFieldScaleHow(record.value); this.fireEvent('editcomplete', this); } }, @@ -870,7 +870,7 @@ define([ imgPositionApplyFunc: function (type) { if (this.api && !this._noApply) { - this.api.SetButtonIconPos(this._state.imgPositionX / 100, (100 - this._state.imgPositionY) / 100); + this.api.SetButtonFieldIconPos(this._state.imgPositionX / 100, (100 - this._state.imgPositionY) / 100); this.fireEvent('editcomplete', this); } }, diff --git a/apps/pdfeditor/main/locale/en.json b/apps/pdfeditor/main/locale/en.json index 0db7ecb645..115701e41d 100644 --- a/apps/pdfeditor/main/locale/en.json +++ b/apps/pdfeditor/main/locale/en.json @@ -1437,7 +1437,7 @@ "PDFE.Views.FormSettings.textPlacement": "Icon placement", "PDFE.Views.FormSettings.textFitBounds": "Fit to bounds", "PDFE.Views.FormSettings.textProportional": "Proportionally", - "PDFE.Views.FormSettings.textAnamorphic": "Nonproportionally", + "PDFE.Views.FormSettings.textAnamorphic": "Non-proportionally", "PDFE.Views.FormSettings.textAlways": "Always", "PDFE.Views.FormSettings.textNever": "Never", "PDFE.Views.FormSettings.textTooBig": "Image is too big",