From f06bb900f7e86b4c1e730ef95ffd5ee851820e67 Mon Sep 17 00:00:00 2001 From: Matiluko Opeyemi Emmanuel Date: Sun, 22 Aug 2021 22:04:21 +0100 Subject: [PATCH] Added Option 'selectBoxHeight' Added Option 'selectBoxHeight', which is set by default to '200px'. This option allows a user to customize the height of the selector and selectable boxes. --- js/jquery.multi-select.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index 2d70e38..87267d1 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -66,6 +66,9 @@ that.$container.append(that.$selectableContainer); that.$container.append(that.$selectionContainer); ms.after(that.$container); + + that.$selectableUl.css("height", that.options.selectBoxHeight); + that.$selectionUl.css("height", that.options.selectBoxHeight); that.activeMouse(that.$selectableUl); that.activeKeyboard(that.$selectableUl); @@ -526,7 +529,8 @@ disabledClass : 'disabled', dblClick : false, keepOrder: false, - cssClass: '' + cssClass: '', + selectBoxHeight: '200px' }; $.fn.multiSelect.Constructor = MultiSelect;