js: fix autocompletion position when scrolled...

...away
This commit is contained in:
Thomas Gelf 2019-04-18 16:53:46 +02:00
parent d3fa347ec2
commit 96ae3451a4
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@
}
} else {
$ul = $('<ul class="director-suggestions"></ul>');
$input.parent().css({
position: 'relative'
});
$ul.insertAfter($input);
var suggestionWidth = (parseInt($input.css('width')) * 2) + 'px';
$ul.css({width: suggestionWidth});