From 0bc2f2c818c220d6e75dcf282bf030921dbce6f2 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Sun, 4 Apr 2021 21:50:06 +0200 Subject: [PATCH] Fix autocomplete / set attributes' dropdown being cut by its container --- js/extkeywidget.js | 4 +++- js/jquery.itop-set-widget.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/extkeywidget.js b/js/extkeywidget.js index a9abd31dbf..5fa935e164 100644 --- a/js/extkeywidget.js +++ b/js/extkeywidget.js @@ -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); diff --git a/js/jquery.itop-set-widget.js b/js/jquery.itop-set-widget.js index cff9ba53b1..82bbf293a4 100644 --- a/js/jquery.itop-set-widget.js +++ b/js/jquery.itop-set-widget.js @@ -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);