select fix

This commit is contained in:
Yuri Kuznetsov
2022-11-17 19:39:12 +02:00
parent 00238ba043
commit 9bbd51fd61
2 changed files with 16 additions and 1 deletions
+12 -1
View File
@@ -49,8 +49,9 @@ define('ui/select', ['lib!Selectize'], (Selectize) => {
let plugins = [];
Select.loadEspoSelectPlugin();
plugins.push('espo_select');
plugins.push('auto_position');
plugins.push('espo_select');
let itemClasses = {};
@@ -226,6 +227,16 @@ define('ui/select', ['lib!Selectize'], (Selectize) => {
Selectize.define('espo_select', function () {
let self = this;
this.positionDropdown = (function () {
let original = self.positionDropdown;
return function () {
original.apply(this, arguments);
this.$dropdown.css({margin: 'unset'});
};
})();
this.refreshOptions = (function () {
let original = self.refreshOptions;
@@ -53,6 +53,10 @@
}
}
}
.selectize-dropdown {
margin-top: 0;
}
}
.selectize-control.multi .selectize-input > div {