Merge pull request #2091 from ONLYOFFICE/fix/bugfix
[DE][PE] Fix Bug 59911
This commit is contained in:
commit
1ef412c1ee
|
@ -2466,7 +2466,7 @@ define([
|
||||||
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
||||||
this.getApplication().getController('RightMenu').updateMetricUnit();
|
this.getApplication().getController('RightMenu').updateMetricUnit();
|
||||||
this.getApplication().getController('Toolbar').getView().updateMetricUnit();
|
this.getApplication().getController('Toolbar').getView().updateMetricUnit();
|
||||||
this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
this.appOptions.canPreviewPrint && this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdvancedOptions: function(type, advOptions, mode, formatOptions) {
|
onAdvancedOptions: function(type, advOptions, mode, formatOptions) {
|
||||||
|
|
|
@ -2619,6 +2619,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
updateMetricUnit: function() {
|
updateMetricUnit: function() {
|
||||||
|
if (!this.cmbPaperSize) return;
|
||||||
var store = this.cmbPaperSize.store;
|
var store = this.cmbPaperSize.store;
|
||||||
for (var i=0; i<store.length-1; i++) {
|
for (var i=0; i<store.length-1; i++) {
|
||||||
var item = store.at(i),
|
var item = store.at(i),
|
||||||
|
|
|
@ -1928,7 +1928,7 @@ define([
|
||||||
Common.Utils.InternalSettings.set("pe-settings-unit", value);
|
Common.Utils.InternalSettings.set("pe-settings-unit", value);
|
||||||
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
||||||
this.getApplication().getController('RightMenu').updateMetricUnit();
|
this.getApplication().getController('RightMenu').updateMetricUnit();
|
||||||
this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
this.appOptions.canPreviewPrint && this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
||||||
},
|
},
|
||||||
|
|
||||||
updateThemeColors: function() {
|
updateThemeColors: function() {
|
||||||
|
|
|
@ -2089,6 +2089,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
updateMetricUnit: function() {
|
updateMetricUnit: function() {
|
||||||
|
if (!this.cmbPaperSize) return;
|
||||||
var store = this.cmbPaperSize.store;
|
var store = this.cmbPaperSize.store;
|
||||||
for (var i=0; i<store.length; i++) {
|
for (var i=0; i<store.length; i++) {
|
||||||
var item = store.at(i),
|
var item = store.at(i),
|
||||||
|
|
Loading…
Reference in a new issue