From 581c42efd909c8089e9f2f431f5f25ecea23dea8 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 9 Dec 2021 19:24:10 +0300 Subject: [PATCH] [DE PE SSE] Fix bug 54471 --- apps/common/main/lib/component/HintManager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/HintManager.js b/apps/common/main/lib/component/HintManager.js index 0eab7c6e6..6476757b9 100644 --- a/apps/common/main/lib/component/HintManager.js +++ b/apps/common/main/lib/component/HintManager.js @@ -292,6 +292,9 @@ Common.UI.HintManager = new(function() { section = _isEditDiagram ? _currentSection[0] : _currentSection, topSection = _currentLevel !== 0 && $(section).length > 0 && !_isEditDiagram ? $(section).offset().top : 0, bottomSection = _currentLevel !== 0 && $(section).length > 0 && !_isEditDiagram ? topSection + $(section).height() : docH; + if ($(section).prop('id') === 'toolbar' && $(section).outerHeight() < $(section).find('.box-controls').outerHeight()) { + bottomSection += $(section).find('.box-controls').outerHeight(); + } if (_currentControls.length === 0) _getControls(); @@ -512,7 +515,8 @@ Common.UI.HintManager = new(function() { return; } var needOpenPanel = (curr.attr('content-target') && !$('#' + curr.attr('content-target')).is(':visible') || - (curr.parent().prop('id') === 'slot-btn-chat' && !$('#left-panel-chat').is(':visible'))); + (curr.parent().prop('id') === 'slot-btn-chat' && !$('#left-panel-chat').is(':visible')) || + (curr.parent().hasClass('ribtab') && !$('#toolbar').children('.toolbar').hasClass('expanded'))); if ((!curr.attr('content-target') && curr.parent().prop('id') !== 'slot-btn-chat') || needOpenPanel) { // need to open panel if (!($('#file-menu-panel').is(':visible') && (curr.parent().prop('id') === 'fm-btn-info' && $('#panel-info').is(':visible') || curr.parent().prop('id') === 'fm-btn-settings' && $('#panel-settings').is(':visible')))) {