Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit 34f0ebf

Browse files
author
pradeep
committed
Scrollable multiselect - Fixing the overflow and getting the right height.
1 parent 232ab13 commit 34f0ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angularjs-dropdown-multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
2020

2121
var template = '<div class="multiselect-parent btn-group dropdown-multiselect">';
2222
template +='<button type="button" class="dropdown-toggle" ng-class="settings.buttonClasses" ng-click="toggleDropdown()">{{getButtonText()}}<span class="caret"></span></button>';
23-
template += '<ul class="dropdown-menu dropdown-menu-form" ng-style="{display: open ? \'block\' : \'none\', overflow: settings.scrollable ? \'overflow-y\' : \'hidden\', height : settings.scrollable ? \'settings.scrollableHeight\' : \'100%\' }">';
23+
template += '<ul class="dropdown-menu dropdown-menu-form" ng-style="{display: open ? \'block\' : \'none\', height : settings.scrollable ? \'settings.scrollableHeight\' : \'auto\' }" style="overflow: scroll" >';
2424
template += '<li ng-hide="!settings.showCheckAll || settings.selectionLimit > 0"><a data-ng-click="selectAll()"><span class="glyphicon glyphicon-ok"></span> {{texts.checkAll}}</a>';
2525
template += '<li ng-show="settings.showUncheckAll"><a data-ng-click="deselectAll();"><span class="glyphicon glyphicon-remove"></span> {{texts.uncheckAll}}</a></li>';
2626
template += '<li ng-hide="(!settings.showCheckAll || settings.selectionLimit > 0) && !settings.showUncheckAll" class="divider"></li>';

0 commit comments

Comments
 (0)