N°3887 - Set max. height for autocomplete results list

This commit is contained in:
Molkobain
2021-04-06 14:41:40 +02:00
parent 4c289edac7
commit 8fb5a9acd0
3 changed files with 11 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ $ibo-input-select-autocomplete--value--min-midth: 150px;
$ibo-input-select-selectize--value--min-midth: 150px;
$ibo-input-select-selectize--value--height: 100% !default;
$ibo-input-select-selectize--value--line-height: $ibo-input--height !default;
$ibo-input-select-selectize--dropdown--max-height: 50vh !default;
$ibo-input-select-wrapper--width: 100% !default;
@@ -160,8 +161,10 @@ $ibo-input-select--action-button--padding-right: 2px !default;
float: right;
}
.selectize-dropdown{
z-index:2000; /* Note: This is not great as it does not take into account other elements z-index, but as selectize puts its dropdown under the <body> tag, we cannot have a z-index relative to input container */
.selectize-dropdown {
z-index: 2000; /* Note: This is not great as it does not take into account other elements z-index, but as selectize puts its dropdown under the <body> tag, we cannot have a z-index relative to input container */
max-height: $ibo-input-select-selectize--dropdown--max-height;
overflow-y: auto;
}
.selectize-dropdown.ui-menu .ui-state-active {
margin: unset;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long