From 7610f5aba6142186c62b8bbaeeece2e1b089b157 Mon Sep 17 00:00:00 2001 From: Konstantin Kireyev Date: Thu, 19 Sep 2024 17:39:52 +0500 Subject: [PATCH] fix/pdfe: scroller --- apps/pdfeditor/main/app/view/FileMenuPanels.js | 4 +--- apps/pdfeditor/main/resources/less/filemenu.less | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/pdfeditor/main/app/view/FileMenuPanels.js b/apps/pdfeditor/main/app/view/FileMenuPanels.js index 69cb53a21e..41c0e823cf 100644 --- a/apps/pdfeditor/main/app/view/FileMenuPanels.js +++ b/apps/pdfeditor/main/app/view/FileMenuPanels.js @@ -1376,7 +1376,6 @@ define([], function () { }); this.btnApply.on('click', _.bind(this.applySettings, this)); - this.pnlInfo = $markup.find('.flex-settings').addBack().filter('.flex-settings'); this.pnlApply = $markup.findById('#fms-flex-apply'); this.rendered = true; @@ -1386,7 +1385,7 @@ define([], function () { this.$el = $(node).html($markup); if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ - el: this.pnlInfo, + el: this.$el, suppressScrollX: true, alwaysVisibleY: true }); @@ -1419,7 +1418,6 @@ define([], function () { updateScroller: function(destroy) { if (this.scroller) { this.scroller.update(destroy ? {} : undefined); - this.pnlInfo.toggleClass('bordered', this.scroller.isVisible()); } }, diff --git a/apps/pdfeditor/main/resources/less/filemenu.less b/apps/pdfeditor/main/resources/less/filemenu.less index 3ce60a5de8..a73947587b 100644 --- a/apps/pdfeditor/main/resources/less/filemenu.less +++ b/apps/pdfeditor/main/resources/less/filemenu.less @@ -59,7 +59,7 @@ .header { .font-size-very-huge(); - margin-bottom: 20px; + margin-bottom: 30px; } .format-items { @@ -198,7 +198,7 @@ #panel-settings { .header { - margin: 30px 0 16px 30px; + margin: 30px 0 18px 30px; .font-size-very-huge(); .rtl & { margin: 30px 30px 16px 0; @@ -287,7 +287,7 @@ padding: 0 0 0 10px; white-space: nowrap; margin-top: 30px; - margin-bottom: 20px; + margin-bottom: 30px; .rtl & { padding: 0 10px 10px 0;