sitestatic; fix typeahead for Edge

Microsoft Edge has no x/y in the Clientrect structure so use top/left
instead which works on all browsers.
This commit is contained in:
Jelle van der Waa 2019-02-19 18:25:22 +01:00
parent d240db37cd
commit ab47d9e94a
No known key found for this signature in database
GPG Key ID: C06086337C50773E

View File

@ -33,8 +33,8 @@
function setListLocation() {
if (!list) return;
const rects = input.getClientRects()[0];
list.style.top = (rects.y + rects.height) + "px";
list.style.left = rects.x + "px";
list.style.top = (rects.top + rects.height) + "px";
list.style.left = rects.left + "px";
}
function loadData(data) {