From de669790d194dd78913807950a5289498c922a7c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 28 Feb 2022 16:21:11 +0300 Subject: [PATCH] [SSE] Refactoring spellcheck panel --- apps/spreadsheeteditor/main/app.js | 4 ++-- apps/spreadsheeteditor/main/app/controller/Spellcheck.js | 3 +++ apps/spreadsheeteditor/main/app_dev.js | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/main/app.js b/apps/spreadsheeteditor/main/app.js index 74d763024..a9cf9cc1b 100644 --- a/apps/spreadsheeteditor/main/app.js +++ b/apps/spreadsheeteditor/main/app.js @@ -152,9 +152,9 @@ require([ 'Print', 'Toolbar', 'Statusbar', - 'Spellcheck', 'RightMenu', 'LeftMenu', + 'Spellcheck', 'Main', 'PivotTable', 'DataTab', @@ -177,9 +177,9 @@ require([ 'spreadsheeteditor/main/app/controller/CellEditor', 'spreadsheeteditor/main/app/controller/Toolbar', 'spreadsheeteditor/main/app/controller/Statusbar', - 'spreadsheeteditor/main/app/controller/Spellcheck', 'spreadsheeteditor/main/app/controller/RightMenu', 'spreadsheeteditor/main/app/controller/LeftMenu', + 'spreadsheeteditor/main/app/controller/Spellcheck', 'spreadsheeteditor/main/app/controller/Main', 'spreadsheeteditor/main/app/controller/Print', 'spreadsheeteditor/main/app/controller/PivotTable', diff --git a/apps/spreadsheeteditor/main/app/controller/Spellcheck.js b/apps/spreadsheeteditor/main/app/controller/Spellcheck.js index 7a166723e..54e982183 100644 --- a/apps/spreadsheeteditor/main/app/controller/Spellcheck.js +++ b/apps/spreadsheeteditor/main/app/controller/Spellcheck.js @@ -254,6 +254,9 @@ define([ }, onSpellCheckVariantsFound: function (property) { + if (property===null && this._currentSpellObj === property && !(this.panelSpellcheck && this.panelSpellcheck.isVisible())) + return; + this._currentSpellObj = property; var arr = [], diff --git a/apps/spreadsheeteditor/main/app_dev.js b/apps/spreadsheeteditor/main/app_dev.js index c3253a8fe..746539606 100644 --- a/apps/spreadsheeteditor/main/app_dev.js +++ b/apps/spreadsheeteditor/main/app_dev.js @@ -142,9 +142,9 @@ require([ 'Print', 'Toolbar', 'Statusbar', - 'Spellcheck', 'RightMenu', 'LeftMenu', + 'Spellcheck', 'Main', 'PivotTable', 'DataTab', @@ -167,9 +167,9 @@ require([ 'spreadsheeteditor/main/app/controller/CellEditor', 'spreadsheeteditor/main/app/controller/Toolbar', 'spreadsheeteditor/main/app/controller/Statusbar', - 'spreadsheeteditor/main/app/controller/Spellcheck', 'spreadsheeteditor/main/app/controller/RightMenu', 'spreadsheeteditor/main/app/controller/LeftMenu', + 'spreadsheeteditor/main/app/controller/Spellcheck', 'spreadsheeteditor/main/app/controller/Main', 'spreadsheeteditor/main/app/controller/Print', 'spreadsheeteditor/main/app/controller/PivotTable',