From 232e4fed76a97d7b3a420c964292be709c33aeea Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Mon, 19 Dec 2022 22:54:13 +0300 Subject: [PATCH] [DE PE SSE] Fix scrolls and headers in file menu panels --- apps/documenteditor/main/app/view/FileMenuPanels.js | 5 +++-- apps/documenteditor/main/resources/less/filemenu.less | 5 ++++- .../main/app/view/FileMenuPanels.js | 5 +++-- .../main/resources/less/leftmenu.less | 4 ++++ .../spreadsheeteditor/main/app/view/FileMenuPanels.js | 11 ++--------- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 13f2da4997..f09186f6c3 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -806,7 +806,7 @@ define([ updateScroller: function() { if (this.scroller) { Common.UI.Menu.Manager.hideAll(); - var scrolled = this.$el.height()< this.pnlTable.parent().height() + 25 + this.pnlApply.height(); + var scrolled = this.$el.height()< this.pnlTable.parent().height() + 25 + this.pnlApply.height() + this.$el.find('.header').outerHeight(true); this.pnlApply.toggleClass('hidden', !scrolled); this.trApply.toggleClass('hidden', scrolled); this.pnlSettings.css('overflow', scrolled ? 'hidden' : 'visible'); @@ -2498,6 +2498,7 @@ define([ '
', '