From 4b2fd93bd326fe313fb1922892cb05f343952adc Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 7 Dec 2021 15:52:12 +0300 Subject: [PATCH 1/5] [SSE] Fix bug 54388 --- apps/common/main/lib/component/DataView.js | 9 ++++-- apps/common/main/lib/component/HintManager.js | 4 +++ apps/common/main/lib/component/ListView.js | 2 +- .../main/app/template/LeftMenu.template | 2 +- .../main/app/view/Spellcheck.js | 31 ++++++++++++++----- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index 86db1a9a7..6740c46d5 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -299,7 +299,8 @@ define([ this.cmpEl = $(this.template({ groups: me.groups ? me.groups.toJSON() : null, style: me.style, - cls: me.cls + cls: me.cls, + options: me.options })); parentEl.html(this.cmpEl); @@ -308,7 +309,8 @@ define([ this.cmpEl.html(this.template({ groups: me.groups ? me.groups.toJSON() : null, style: me.style, - cls: me.cls + cls: me.cls, + options: me.options })); } @@ -506,7 +508,8 @@ define([ $(this.el).html(this.template({ groups: this.groups ? this.groups.toJSON() : null, style: this.style, - cls: this.cls + cls: this.cls, + options: this.options })); if (!_.isUndefined(this.scroller)) { diff --git a/apps/common/main/lib/component/HintManager.js b/apps/common/main/lib/component/HintManager.js index dbe0c4e3b..0eab7c6e6 100644 --- a/apps/common/main/lib/component/HintManager.js +++ b/apps/common/main/lib/component/HintManager.js @@ -500,6 +500,10 @@ Common.UI.HintManager = new(function() { curr.trigger(jQuery.Event('click', {which: 1})); curr.focus(); _resetToDefault(); + } else if (curr.hasClass('listview')) { + _hideHints(); + curr.focus(); + _resetToDefault(); } else { _isComplete = false; _hideHints(); diff --git a/apps/common/main/lib/component/ListView.js b/apps/common/main/lib/component/ListView.js index 67b3824ba..f796d38bb 100644 --- a/apps/common/main/lib/component/ListView.js +++ b/apps/common/main/lib/component/ListView.js @@ -59,7 +59,7 @@ define([ }, template: _.template([ - '
' + '
data-hint="<%= options.dataHint %>" <% } if (options.dataHintDirection) { %> data-hint-direction="<%= options.dataHintDirection %>" <% } if (options.dataHintOffset) { %> data-hint-offset="<%= options.dataHintOffset %>" <% } %>>
' ].join('')), onResetItems : function() { diff --git a/apps/spreadsheeteditor/main/app/template/LeftMenu.template b/apps/spreadsheeteditor/main/app/template/LeftMenu.template index c11a45dac..b8da605c1 100644 --- a/apps/spreadsheeteditor/main/app/template/LeftMenu.template +++ b/apps/spreadsheeteditor/main/app/template/LeftMenu.template @@ -6,7 +6,7 @@ - + diff --git a/apps/spreadsheeteditor/main/app/view/Spellcheck.js b/apps/spreadsheeteditor/main/app/view/Spellcheck.js index 0264df328..f5486fa58 100644 --- a/apps/spreadsheeteditor/main/app/view/Spellcheck.js +++ b/apps/spreadsheeteditor/main/app/view/Spellcheck.js @@ -60,7 +60,7 @@ define([ '
', '
', '
', - '', + '', '', '
', ' - + diff --git a/apps/presentationeditor/embed/index.html.deploy b/apps/presentationeditor/embed/index.html.deploy index 540856471..882a0e8fd 100644 --- a/apps/presentationeditor/embed/index.html.deploy +++ b/apps/presentationeditor/embed/index.html.deploy @@ -267,7 +267,7 @@ - + diff --git a/apps/presentationeditor/embed/index_loader.html b/apps/presentationeditor/embed/index_loader.html index 5b3142e62..2ac2e8fb4 100644 --- a/apps/presentationeditor/embed/index_loader.html +++ b/apps/presentationeditor/embed/index_loader.html @@ -321,7 +321,7 @@ - + diff --git a/apps/presentationeditor/embed/index_loader.html.deploy b/apps/presentationeditor/embed/index_loader.html.deploy index f69ed41d9..574297d38 100644 --- a/apps/presentationeditor/embed/index_loader.html.deploy +++ b/apps/presentationeditor/embed/index_loader.html.deploy @@ -314,7 +314,7 @@ - + diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 4fb9ceda0..9fb45c2d0 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -41,7 +41,7 @@ PE.ApplicationController = new(function(){ maxPages = 0, created = false, currentPage = 0, - ttOffset = [0, -10], + ttOffset = [5, -10], labelDocName; var LoadingDocument = -256; @@ -206,10 +206,11 @@ PE.ApplicationController = new(function(){ $ttEl.tooltip({'container':'body', 'trigger':'manual'}); $ttEl.on('shown.bs.tooltip', function(e) { $tooltip = $ttEl.data('bs.tooltip').tip(); - + var pos = $ttEl.ttpos[1] - $tooltip.height() + ttOffset[1]; + (pos<0) && (pos = 0); $tooltip.css({ left: $ttEl.ttpos[0] + ttOffset[0], - top: $ttEl.ttpos[1] + ttOffset[1] + top: pos }); $tooltip.find('.tooltip-arrow').css({left: 10}); @@ -220,9 +221,11 @@ PE.ApplicationController = new(function(){ $ttEl.ttpos = [data.get_X(), data.get_Y()]; $ttEl.tooltip('show'); } else { + var pos = $ttEl.ttpos[1] - $tooltip.height() + ttOffset[1]; + (pos<0) && (pos = 0); $tooltip.css({ left:data.get_X() + ttOffset[0], - top:data.get_Y() + ttOffset[1] + top:pos }); } } diff --git a/apps/spreadsheeteditor/embed/index.html b/apps/spreadsheeteditor/embed/index.html index 2e0f4617c..a5a975542 100644 --- a/apps/spreadsheeteditor/embed/index.html +++ b/apps/spreadsheeteditor/embed/index.html @@ -246,7 +246,7 @@ - + diff --git a/apps/spreadsheeteditor/embed/index.html.deploy b/apps/spreadsheeteditor/embed/index.html.deploy index 5bced543e..43368764a 100644 --- a/apps/spreadsheeteditor/embed/index.html.deploy +++ b/apps/spreadsheeteditor/embed/index.html.deploy @@ -238,7 +238,7 @@ - + diff --git a/apps/spreadsheeteditor/embed/index_loader.html b/apps/spreadsheeteditor/embed/index_loader.html index 7e37cb96c..18b700b25 100644 --- a/apps/spreadsheeteditor/embed/index_loader.html +++ b/apps/spreadsheeteditor/embed/index_loader.html @@ -320,7 +320,7 @@ - + diff --git a/apps/spreadsheeteditor/embed/index_loader.html.deploy b/apps/spreadsheeteditor/embed/index_loader.html.deploy index 3459e52ad..d463a09fd 100644 --- a/apps/spreadsheeteditor/embed/index_loader.html.deploy +++ b/apps/spreadsheeteditor/embed/index_loader.html.deploy @@ -312,7 +312,7 @@ - + From 4e699506653ecf8d3dcdeacfeaec6fdfc063d9b9 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 7 Dec 2021 20:56:14 +0300 Subject: [PATCH 5/5] [all] fix bug 54107 --- apps/documenteditor/main/index.html.deploy | 1 + apps/presentationeditor/main/index.html.deploy | 1 + apps/spreadsheeteditor/main/index.html.deploy | 1 + apps/spreadsheeteditor/main/index_internal.html.deploy | 1 + 4 files changed, 4 insertions(+) diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy index afc4a3735..c01b2327d 100644 --- a/apps/documenteditor/main/index.html.deploy +++ b/apps/documenteditor/main/index.html.deploy @@ -230,6 +230,7 @@ + diff --git a/apps/presentationeditor/main/index.html.deploy b/apps/presentationeditor/main/index.html.deploy index f730751ed..ac961049e 100644 --- a/apps/presentationeditor/main/index.html.deploy +++ b/apps/presentationeditor/main/index.html.deploy @@ -264,6 +264,7 @@ + diff --git a/apps/spreadsheeteditor/main/index.html.deploy b/apps/spreadsheeteditor/main/index.html.deploy index 609a47f39..1e796c159 100644 --- a/apps/spreadsheeteditor/main/index.html.deploy +++ b/apps/spreadsheeteditor/main/index.html.deploy @@ -265,6 +265,7 @@ + diff --git a/apps/spreadsheeteditor/main/index_internal.html.deploy b/apps/spreadsheeteditor/main/index_internal.html.deploy index 736d2b6f1..d7bc286b3 100644 --- a/apps/spreadsheeteditor/main/index_internal.html.deploy +++ b/apps/spreadsheeteditor/main/index_internal.html.deploy @@ -189,6 +189,7 @@ +