summaryrefslogtreecommitdiffstats
path: root/templates/html/search.js
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-08 14:36:12 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-08 14:36:12 (GMT)
commit12a6d876e3ff0004e288f1c7fadb10d0431bfc24 (patch)
treecb8cec1ebb755d6e0a4a44dfa35ce01b141a8f18 /templates/html/search.js
parent99f9fc74eda25616f3d5c3e40f030c8c7ecce4bb (diff)
downloadDoxygen-12a6d876e3ff0004e288f1c7fadb10d0431bfc24.zip
Doxygen-12a6d876e3ff0004e288f1c7fadb10d0431bfc24.tar.gz
Doxygen-12a6d876e3ff0004e288f1c7fadb10d0431bfc24.tar.bz2
Optimized the layout in case DISABLE_INDEX=YES and GENERATE_TREEVIEW=YES
- also illustrated the various layouts in the customization section of the manual to make choosing easier.
Diffstat (limited to 'templates/html/search.js')
-rw-r--r--templates/html/search.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/html/search.js b/templates/html/search.js
index fb226f7..54ad133 100644
--- a/templates/html/search.js
+++ b/templates/html/search.js
@@ -146,6 +146,7 @@ function SearchBox(name, resultsPath, inFrame, label, extension)
// show search selection popup
searchSelectWindow.style.display='block';
left -= searchSelectWindow.offsetWidth;
+ if (left<10) left=10;
searchSelectWindow.style.left = left + 'px';
searchSelectWindow.style.top = top + 'px';
}
@@ -383,6 +384,7 @@ function SearchBox(name, resultsPath, inFrame, label, extension)
var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1;
domPopupSearchResultsWindow.style.display = 'block';
left -= domPopupSearchResults.offsetWidth;
+ if (left<10) left=10;
domPopupSearchResultsWindow.style.top = top + 'px';
domPopupSearchResultsWindow.style.left = left + 'px';
}