summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-02-19 18:25:22 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-02-19 18:25:22 +0100
commitab47d9e94af73d3d08f09af96f9a2d66e81296ee (patch)
tree73263b3c6f73a4e4841e87988cd10ac958c52cbd
parentd240db37cd913485c53d5cd7a9545f04bb96c4c9 (diff)
downloadarchweb-ab47d9e94af73d3d08f09af96f9a2d66e81296ee.tar.gz
archweb-ab47d9e94af73d3d08f09af96f9a2d66e81296ee.zip
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.
-rw-r--r--sitestatic/homepage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/sitestatic/homepage.js b/sitestatic/homepage.js
index b46cf0b4..67164222 100644
--- a/sitestatic/homepage.js
+++ b/sitestatic/homepage.js
@@ -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) {