Commit 152cd455 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Отладка настроек печати.

parent 89e4aae0
...@@ -107,13 +107,13 @@ define([ ...@@ -107,13 +107,13 @@ define([
if (item) panel.cmbPaperOrientation.setValue(item.get('value')); if (item) panel.cmbPaperOrientation.setValue(item.get('value'));
opt = props.asc_getPageMargins(); opt = props.asc_getPageMargins();
panel.spnMarginLeft.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getLeft())); panel.spnMarginLeft.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getLeft()), true);
panel.spnMarginTop.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getTop())); panel.spnMarginTop.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getTop()), true);
panel.spnMarginRight.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getRight())); panel.spnMarginRight.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getRight()), true);
panel.spnMarginBottom.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getBottom())); panel.spnMarginBottom.setValue(Common.Utils.Metric.fnRecalcFromMM(opt.asc_getBottom()), true);
panel.chPrintGrid.setValue(props.asc_getGridLines()); panel.chPrintGrid.setValue(props.asc_getGridLines(), true);
panel.chPrintRows.setValue(props.asc_getHeadings()); panel.chPrintRows.setValue(props.asc_getHeadings(), true);
}, },
fillPrintOptions: function(props) { fillPrintOptions: function(props) {
...@@ -149,7 +149,7 @@ define([ ...@@ -149,7 +149,7 @@ define([
var value = panel.cmbLayout.getValue(); var value = panel.cmbLayout.getValue();
opt.asc_setFitToWidth(value==1 || value==2); opt.asc_setFitToWidth(value==1 || value==2);
opt.asc_getFitToHeight(value==1 || value==3); opt.asc_setFitToHeight(value==1 || value==3);
props.asc_setPageSetup(opt); props.asc_setPageSetup(opt);
......
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