From 61ea26c70bd59e8695fb55b3c5c0cc35e5d4cca8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 11 Aug 2020 19:33:58 +0300 Subject: [PATCH] Refactoring --- apps/documenteditor/main/app/view/FileMenuPanels.js | 5 +---- apps/presentationeditor/main/app/view/FileMenuPanels.js | 5 +---- apps/spreadsheeteditor/main/app/view/FileMenuPanels.js | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 172dc2174..c35d36cad 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -1097,10 +1097,7 @@ define([ updateScroller: function(destroy) { if (this.scroller) { - this.scroller.update(destroy ? { - suppressScrollX: true, - alwaysVisibleY: true - } : undefined); + this.scroller.update(destroy ? {} : undefined); this.pnlInfo.toggleClass('bordered', this.scroller.isVisible()); } }, diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index f014e711d..807558bc0 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -968,10 +968,7 @@ define([ updateScroller: function(destroy) { if (this.scroller) { - this.scroller.update(destroy ? { - suppressScrollX: true, - alwaysVisibleY: true - } : undefined); + this.scroller.update(destroy ? {} : undefined); this.pnlInfo.toggleClass('bordered', this.scroller.isVisible()); } }, diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index a636d0171..75969140c 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1809,10 +1809,7 @@ define([ updateScroller: function(destroy) { if (this.scroller) { - this.scroller.update(destroy ? { - suppressScrollX: true, - alwaysVisibleY: true - } : undefined); + this.scroller.update(destroy ? {} : undefined); this.pnlInfo.toggleClass('bordered', this.scroller.isVisible()); } },