[autocomplete] argh

This commit is contained in:
Shish 2023-12-26 04:11:35 +00:00
parent 33adf9aeff
commit a92d1ac7c5

View file

@ -113,8 +113,8 @@ function renderCompletions(element) {
element.parentNode.insertBefore(completions_el, element.nextSibling);
let br = element.getBoundingClientRect();
completions_el.style.width = br.width + 'px';
completions_el.style.left = br.left + 'px';
completions_el.style.top = (br.top + br.height) + 'px';
completions_el.style.left = window.scrollX + br.left + 'px';
completions_el.style.top = window.scrollY + (br.top + br.height) + 'px';
}
}
/**