From b0c7c000f769867eeea195e3a2a34197d6000217 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 29 Aug 2016 17:54:19 +0300 Subject: [PATCH] Fix Bug 32998. --- apps/common/main/lib/component/ComboBox.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/ComboBox.js b/apps/common/main/lib/component/ComboBox.js index 2687b0e23..35f3ca96f 100644 --- a/apps/common/main/lib/component/ComboBox.js +++ b/apps/common/main/lib/component/ComboBox.js @@ -211,8 +211,17 @@ define([ openMenu: function(delay) { var me = this; + if ( !this.scroller ) { + this.scroller = new Common.UI.Scroller(_.extend({ + el: $('.dropdown-menu', this.cmpEl), + minScrollbarLength: 40, + scrollYMarginOffset: 30, + includePadding: true + }, this.options.scroller)); + } + _.delay(function(){ - me.cmpEl.addClass('open') + me.cmpEl.addClass('open'); }, delay || 0); },