From fc8e02182cede3a4f5c5675b8f394b111e9b03c1 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 18 Aug 2018 20:50:47 +0800 Subject: [PATCH] multiselect loader --- src/widget/multiselect/multiselect.loader.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/widget/multiselect/multiselect.loader.js b/src/widget/multiselect/multiselect.loader.js index 9c284b95f..7a8f005f5 100644 --- a/src/widget/multiselect/multiselect.loader.js +++ b/src/widget/multiselect/multiselect.loader.js @@ -103,12 +103,15 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { }, value: this.storeValue }); - BI.createWidget({ - type: "bi.vertical", - element: this, - items: [this.button_group], + + BI.createWidget(BI.extend({ + element: this + }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Top), BI.extend({ + scrolly: true, vgap: 5 - }); + }, opts.logic, { + items: BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Top, this.button_group) + })))); this.button_group.on(BI.Controller.EVENT_CHANGE, function () { self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); });