From ce7957d76f0cd36781ac5b1a283456ae3b861dd9 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 26 May 2016 12:12:32 +0300 Subject: [PATCH] =?UTF-8?q?[DE]=20=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BA=20=D0=B1=D0=B0=D0=B3=D1=83=2032174.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/documenteditor/main/app/view/TableSettingsAdvanced.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/TableSettingsAdvanced.js b/apps/documenteditor/main/app/view/TableSettingsAdvanced.js index 3b2bf055a..43ecc627a 100644 --- a/apps/documenteditor/main/app/view/TableSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/TableSettingsAdvanced.js @@ -124,7 +124,7 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat this.tableStylerRows = this.options.tableStylerRows; this.tableStylerColumns = this.options.tableStylerColumns; this.borderProps = this.options.borderProps; - this.pageWidth = (this.options.sectionProps) ? this.options.sectionProps.get_W() - this.options.sectionProps.get_LeftMargin() - this.options.sectionProps.get_RightMargin() : 210; + this.pageWidth = 210; this._originalProps = new Asc.CTableProp(this.options.tableProps); }, @@ -1170,6 +1170,7 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat _setDefaults: function(props) { if (props ){ this._allTable = !props.get_CellSelect(); + this.pageWidth = Common.Utils.Metric.fnRecalcFromMM(props.get_PercentFullWidth()); var value, TableWidth = props.get_Width(), @@ -2081,7 +2082,6 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat spinner.setStep(Common.Utils.Metric.getCurrentMetric()==Common.Utils.Metric.c_MetricUnits.pt ? 1 : 0.1); } } - this.pageWidth = Common.Utils.Metric.fnRecalcFromMM(this.pageWidth); }, updateThemeColors: function() {