From d432f2781cf1afcb05f7dcf2b0154b3dddc6cfd9 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 21 Jun 2019 11:43:17 +0300 Subject: [PATCH] [SSE] Refactoring formula buttons --- apps/spreadsheeteditor/main/app/view/FormulaTab.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormulaTab.js b/apps/spreadsheeteditor/main/app/view/FormulaTab.js index 16a3a9189..095b92527 100644 --- a/apps/spreadsheeteditor/main/app/view/FormulaTab.js +++ b/apps/spreadsheeteditor/main/app/view/FormulaTab.js @@ -218,19 +218,8 @@ define([ }); } else { btn.setMenu(new Common.UI.Menu({ - maxHeight: 400, + restoreHeight: 415, items: arr - }).on('show:before', function (mnu) { - if (!this.scroller) { - this.scroller = new Common.UI.Scroller({ - el: $(this.el).find('.dropdown-menu '), - useKeyboard: this.enableKeyEvents && !this.handleSelect, - minScrollbarLength: 30, - alwaysVisibleY: true - }); - } - }).on('show:after', function (mnu) { - this.scroller && this.scroller.update({alwaysVisibleY: true}); })); btn.menu.on('item:click', function (menu, item, e) { me.fireEvent('function:apply', [{name: item.caption, origin: item.value}]);