From aad24e1e0dd5f087c944db6c20d194d90a0b0352 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Wed, 18 Dec 2019 15:52:54 +0300 Subject: [PATCH] [DE] Margins Dialog: preview --- .../main/app/view/PageMarginsDialog.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/documenteditor/main/app/view/PageMarginsDialog.js b/apps/documenteditor/main/app/view/PageMarginsDialog.js index b94cec2e4..2cb7a2b04 100644 --- a/apps/documenteditor/main/app/view/PageMarginsDialog.js +++ b/apps/documenteditor/main/app/view/PageMarginsDialog.js @@ -131,7 +131,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_TopMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); this.spinners.push(this.spnTop); @@ -149,7 +149,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_BottomMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); this.spinners.push(this.spnBottom); @@ -167,7 +167,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_LeftMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); this.spinners.push(this.spnLeft); @@ -185,7 +185,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_RightMargin(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); this.spinners.push(this.spnRight); @@ -203,7 +203,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_Gutter(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); this.spinners.push(this.spnGutter); @@ -223,7 +223,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_GutterAtTop(record.value); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); @@ -242,7 +242,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_Orientation(record.value); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); @@ -271,7 +271,7 @@ define([ if (this.api) { this.properties = (this.properties) ? this.properties : new Asc.CDocumentSectionProps(); this.properties.put_MirrorMargins(record.value); - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } }, this)); @@ -341,7 +341,7 @@ define([ this.cmbGutterPosition.setDisabled(mirrorMargins); if (this.api) { - //this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); + this.api.SetDrawImagePreviewMargins('page-margins-preview', this.properties); } } },