1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2025-06-13 12:54:14 +00:00

HTTP Server: Fix search-suggest not working for vector ul [#489]

This commit is contained in:
gnosygnu 2019-08-04 23:18:24 -04:00
parent b350d95206
commit 55a4891064

View File

@ -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);
})();