[SSE] Set page orientation

This commit is contained in:
Julia Radzhabova 2018-07-17 13:10:23 +03:00
parent 7217a0fbce
commit 413d4b7133

View file

@ -3196,9 +3196,7 @@ define([
onPageOrientSelect: function(menu, item) { onPageOrientSelect: function(menu, item) {
this._state.pgorient = undefined; this._state.pgorient = undefined;
if (this.api && item.checked) { if (this.api && item.checked) {
var props = this.api.asc_getPageOptions(), this.api.asc_changePageOrient(item.value==Asc.c_oAscPageOrientation.PagePortrait, this.api.asc_getActiveWorksheetIndex());
opt = props.asc_getPageSetup();
this.api.asc_setPageOptions(opt.asc_setOrientation, item.value, this.api.asc_getActiveWorksheetIndex());
Common.NotificationCenter.trigger('page:settings'); Common.NotificationCenter.trigger('page:settings');
} }