select fix
This commit is contained in:
+12
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user