mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
js: fix autocompletion position when scrolled...
...away
This commit is contained in:
parent
d3fa347ec2
commit
96ae3451a4
@ -259,6 +259,9 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ul = $('<ul class="director-suggestions"></ul>');
|
$ul = $('<ul class="director-suggestions"></ul>');
|
||||||
|
$input.parent().css({
|
||||||
|
position: 'relative'
|
||||||
|
});
|
||||||
$ul.insertAfter($input);
|
$ul.insertAfter($input);
|
||||||
var suggestionWidth = (parseInt($input.css('width')) * 2) + 'px';
|
var suggestionWidth = (parseInt($input.css('width')) * 2) + 'px';
|
||||||
$ul.css({width: suggestionWidth});
|
$ul.css({width: suggestionWidth});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user