From 3208a4bdf2f4399beb2e7d7f489774bb6748032b Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 7 Dec 2022 16:48:55 +0300 Subject: [PATCH] [desktop] hide panel before "print" command --- apps/documenteditor/main/app/controller/Print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Print.js b/apps/documenteditor/main/app/controller/Print.js index 556b303f8..668c570af 100644 --- a/apps/documenteditor/main/app/controller/Print.js +++ b/apps/documenteditor/main/app/controller/Print.js @@ -525,6 +525,7 @@ define([ paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null }); + this.printSettings.menu.hide(); if ( print ) { 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); @@ -534,7 +535,6 @@ define([ opts.asc_setAdvancedOptions(this.adjPrintParams); this.api.asc_DownloadAs(opts); } - this.printSettings.menu.hide(); }, inputPagesChanging: function (input, value) {