From a16c403e7f8fad1321e747c097a79b659141d3ed Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 10 Mar 2022 17:32:02 +0400 Subject: [PATCH] [DE PE SSE mobile] For Bug 47674 --- .../mobile/src/controller/settings/Settings.jsx | 4 +++- .../mobile/src/view/settings/Settings.jsx | 7 +++++-- .../mobile/src/view/settings/Settings.jsx | 7 +++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx index d32e6b456..8f756f037 100644 --- a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx @@ -41,9 +41,11 @@ const Settings = props => { }; const onPrint = () => { + const api = Common.EditorApi.get(); + closeModal(); setTimeout(() => { - Common.EditorApi.get().asc_Print(); + api.asc_Print(); }, 400); }; diff --git a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx index afc2f4402..4625d31a3 100644 --- a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx +++ b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx @@ -86,9 +86,12 @@ const SettingsList = inject("storeAppOptions", "storeToolbarSettings")(observer( } const onPrint = () => { - closeModal(); const api = Common.EditorApi.get(); - api.asc_Print(); + + closeModal(); + setTimeout(() => { + api.asc_Print(); + }, 400); }; const showHelp = () => { diff --git a/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx b/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx index eb8f1929d..5a3c89d8b 100644 --- a/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/settings/Settings.jsx @@ -91,9 +91,12 @@ const SettingsList = inject("storeAppOptions")(observer(props => { } const onPrint = () => { - closeModal(); const api = Common.EditorApi.get(); - api.asc_Print(); + + closeModal(); + setTimeout(() => { + api.asc_Print(); + }, 400); }; const showHelp = () => {