[desktop] hide panel before "print" command

This commit is contained in:
Maxim Kadushkin 2022-12-07 16:48:55 +03:00
parent 9e608f168d
commit 3208a4bdf2

View file

@ -525,6 +525,7 @@ define([
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
}); });
this.printSettings.menu.hide();
if ( print ) { if ( print ) {
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86); var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
opts.asc_setAdvancedOptions(this.adjPrintParams); opts.asc_setAdvancedOptions(this.adjPrintParams);
@ -534,7 +535,6 @@ define([
opts.asc_setAdvancedOptions(this.adjPrintParams); opts.asc_setAdvancedOptions(this.adjPrintParams);
this.api.asc_DownloadAs(opts); this.api.asc_DownloadAs(opts);
} }
this.printSettings.menu.hide();
}, },
inputPagesChanging: function (input, value) { inputPagesChanging: function (input, value) {