diff --git a/searx/static/themes/oscar/js/searxng.min.js b/searx/static/themes/oscar/js/searxng.min.js index 9da3a8b75..c835d8129 100644 Binary files a/searx/static/themes/oscar/js/searxng.min.js and b/searx/static/themes/oscar/js/searxng.min.js differ diff --git a/searx/static/themes/oscar/js/searxng.min.js.map b/searx/static/themes/oscar/js/searxng.min.js.map index 33b340aa6..0b6317471 100644 Binary files a/searx/static/themes/oscar/js/searxng.min.js.map and b/searx/static/themes/oscar/js/searxng.min.js.map differ diff --git a/searx/static/themes/simple/js/searxng.min.js b/searx/static/themes/simple/js/searxng.min.js index c88e39c65..b8b42d34b 100644 Binary files a/searx/static/themes/simple/js/searxng.min.js and b/searx/static/themes/simple/js/searxng.min.js differ diff --git a/searx/static/themes/simple/js/searxng.min.js.map b/searx/static/themes/simple/js/searxng.min.js.map index a11737204..4bddf9335 100644 Binary files a/searx/static/themes/simple/js/searxng.min.js.map and b/searx/static/themes/simple/js/searxng.min.js.map differ diff --git a/searx/static/themes/simple/src/js/main/search.js b/searx/static/themes/simple/src/js/main/search.js index 0244a90ea..09a90b7e9 100644 --- a/searx/static/themes/simple/src/js/main/search.js +++ b/searx/static/themes/simple/src/js/main/search.js @@ -54,7 +54,7 @@ if (qinput !== null) { // clear button createClearButton(qinput); - + // autocompleter if (searxng.autocompleter) { searxng.autocomplete = AutoComplete.call(w, { @@ -67,6 +67,12 @@ }, MinChars: 4, Delay: 300, + _Position:function() { + this.DOMResults.setAttribute("class", "autocomplete"); + this.DOMResults.style.top = (this.Input.offsetTop + this.Input.offsetHeight) + "px"; + this.DOMResults.style.left = this.Input.offsetLeft + "px"; + this.DOMResults.style.width = this.Input.clientWidth + "px"; + }, }, "#" + qinput_id); // hack, see : https://github.com/autocompletejs/autocomplete.js/issues/37