File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,7 @@ class CustomSelect {
441
441
optionsElem . style . top = ( currentElemRect . top - dialogElemRect . top + currentElemRect . height - 2 ) + 'px' ;
442
442
optionsElem . style . left = ( currentElemRect . left - dialogElemRect . left - 1 ) + 'px' ;
443
443
optionsElem . style . width = currentElemRect . width + 'px' ;
444
+ optionsElem . style . maxHeight = Math . max ( document . body . clientHeight - currentElemRect . top - currentElemRect . height - 2 , 50 ) + 'px' ;
444
445
if ( this . optionsElem === null ) {
445
446
optionsElem . className = 'customSelectOptions' ;
446
447
this . optionsElem = optionsElem ;
Original file line number Diff line number Diff line change 241
241
border-radius : 0 0 4px 4px ;
242
242
z-index : 42 ;
243
243
text-align : left;
244
+ overflow-y : auto;
244
245
}
245
246
246
247
.customSelectOption {
You can’t perform that action at this time.
0 commit comments