From 55a4891064fedd918fc5a1ee0b322714ff4ed64c Mon Sep 17 00:00:00 2001 From: gnosygnu Date: Sun, 4 Aug 2019 23:18:24 -0400 Subject: [PATCH] HTTP Server: Fix search-suggest not working for vector ul [#489] --- .../xowa/html/res/src/xowa/search-suggest/search-suggest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/res/bin/any/xowa/html/res/src/xowa/search-suggest/search-suggest.js b/res/bin/any/xowa/html/res/src/xowa/search-suggest/search-suggest.js index 931ac1687..63752d354 100644 --- a/res/bin/any/xowa/html/res/src/xowa/search-suggest/search-suggest.js +++ b/res/bin/any/xowa/html/res/src/xowa/search-suggest/search-suggest.js @@ -90,6 +90,7 @@ function showSuggestions (suggestions) { return; } suggestionList.style.display = ''; + suggestionList.style.height = 'auto'; // .vector tabs ul {height:100%} causes all search-suggest rows to collapse into one; DATE:2019-08-04 var i, li; for (i = 0; i < suggestions.length; i += 2) { var page_db = suggestions[i]; @@ -168,6 +169,7 @@ function init () { suggestionList = document.createElement('ul'); suggestionList.id = 'xowa-search-suggestions'; suggestionList.style.display = 'none'; + suggestionList.style.height = 'auto !important'; document.getElementById('simpleSearch').appendChild(suggestionList); searchInput.addEventListener('keyup', onKeyUp, false); searchInput.addEventListener('keydown', onKeyDown, false); @@ -179,5 +181,4 @@ function init () { } document.addEventListener('DOMContentLoaded', init, false); - })(); \ No newline at end of file