mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
Fix autocomplete / set attributes' dropdown being cut by its container
This commit is contained in:
@@ -97,10 +97,12 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
|
||||
valueField: 'value',
|
||||
labelField: 'label',
|
||||
searchField: 'label',
|
||||
options:JSON.parse(options),
|
||||
options: JSON.parse(options),
|
||||
maxItems: 1,
|
||||
copyClassesToDropdown: false,
|
||||
inputClass: 'ibo-input ibo-input-select ibo-input-selectize',
|
||||
// To avoid dropdown to be cut by the container's overflow hidden rule
|
||||
dropdownParent: 'body',
|
||||
});
|
||||
let $selectize = $select[0].selectize; // This stores the selectize object to a variable (with name 'selectize')
|
||||
$selectize.setValue(initValue, true);
|
||||
|
||||
@@ -151,6 +151,8 @@ $.widget('itop.set_widget',
|
||||
create: false,
|
||||
placeholder: Dict.S("Core:AttributeSet:placeholder"),
|
||||
inputClass: 'selectize-input ibo-input ibo-input-set ibo-input-selectize',
|
||||
// To avoid dropdown to be cut by the container's overflow hidden rule
|
||||
dropdownParent: 'body',
|
||||
onInitialize: function () {
|
||||
var selectizeWidget = this;
|
||||
setWidget._onInitialize(selectizeWidget);
|
||||
|
||||
Reference in New Issue
Block a user