Commit ce7957d7 authored by Julia Radzhabova's avatar Julia Radzhabova

[DE] Правка к багу 32174.

parent 21b670ce
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment