From ab47d9e94af73d3d08f09af96f9a2d66e81296ee Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 19 Feb 2019 18:25:22 +0100 Subject: 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. --- sitestatic/homepage.js | 4 ++-- 1 file 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) { -- cgit v1.2.3-55-g3dc8