[SSE] Fix printing tities
This commit is contained in:
parent
8d88fe6aca
commit
42ccd21630
|
@ -3464,7 +3464,7 @@ define([
|
||||||
handler: function(dlg, result) {
|
handler: function(dlg, result) {
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
props = dlg.getSettings();
|
props = dlg.getSettings();
|
||||||
me.api.asc_changePrintTitles(props);
|
me.api.asc_changePrintTitles(props.width, props.height, me.api.asc_getActiveWorksheetIndex());
|
||||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,10 +222,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
getSettings: function() {
|
getSettings: function() {
|
||||||
var props = new Asc.asc_CPageOptions();
|
return {width: this.txtRangeTop.getValue(), height: this.txtRangeLeft.getValue()};
|
||||||
props.asc_setPrintTitlesWidth(this.txtRangeTop.getValue());
|
|
||||||
props.asc_setPrintTitlesHeight(this.txtRangeLeft.getValue());
|
|
||||||
return props;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onPresetSelect: function(type, menu, item) {
|
onPresetSelect: function(type, menu, item) {
|
||||||
|
|
Loading…
Reference in a new issue