Fix task tag cut off (#1734)

This commit is contained in:
aignatov-bio 2019-05-08 10:21:59 +02:00 committed by GitHub
parent 0a7696200a
commit d08bdd771e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -290,7 +290,8 @@ function initTagsSelector() {
closeOnSelect: true,
withoutArrow: true,
dynamicCreation: true,
dynamicCreationDelimiter: [',']
dynamicCreationDelimiter: [','],
placeholderSize: '250px'
}).on('select2:select', (e) => {
var params = e.params.data;
var newTag = null;

View file

@ -57,7 +57,9 @@ $.fn.extend({
// Placeholder fix for ajax fields
if (config.ajax) {
setTimeout(() => {
select2.next().find('.select2-search__field').css('width', 'auto');
select2.next().find('.select2-search__field').css(
'width', config.placeholderSize || 'auto'
);
}, 0);
}