summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-30 09:42:06 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-30 09:42:06 (GMT)
commit74b8e42b85cda8927e14511fba8b83f85b6ff2c9 (patch)
tree7ff89e17a28b279a82d7a4e489f5d2fd740a71b1 /src/htmlgen.cpp
parentda0a6b42c349bc06b2804a4b0e8f55c7690f5cf9 (diff)
downloadDoxygen-74b8e42b85cda8927e14511fba8b83f85b6ff2c9.zip
Doxygen-74b8e42b85cda8927e14511fba8b83f85b6ff2c9.tar.gz
Doxygen-74b8e42b85cda8927e14511fba8b83f85b6ff2c9.tar.bz2
Improved responsive design of dynamic menus
When DISABLE_INDEX=NO and HTML_DYNAMIC_MENUS=YES (both defaults) then on screens with a width smaller than 768 pixels, the menu will collapse into a bar with just a hamburger button and the search field. Also the search result window now stays within the limited of the screen.
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 86825e4..e1547af 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1124,7 +1124,7 @@ void HtmlGenerator::startFile(const QCString &name,const QCString &,
m_t << "<script type=\"text/javascript\">\n";
m_t << "/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */\n";
m_t << "var searchBox = new SearchBox(\"searchBox\", \""
- << m_relPath<< "search\",false,'" << theTranslator->trSearch() << "','" << Doxygen::htmlFileExtension << "');\n";
+ << m_relPath<< "search\",'" << theTranslator->trSearch() << "','" << Doxygen::htmlFileExtension << "');\n";
m_t << "/* @license-end */\n";
m_t << "</script>\n";
}
@@ -2662,7 +2662,7 @@ void HtmlGenerator::writeSearchPage()
t << "<script type=\"text/javascript\">\n";
t << "/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */\n";
t << "var searchBox = new SearchBox(\"searchBox\", \""
- << "search\",false,'" << theTranslator->trSearch() << "','" << Doxygen::htmlFileExtension << "');\n";
+ << "search\",'" << theTranslator->trSearch() << "','" << Doxygen::htmlFileExtension << "');\n";
t << "/* @license-end */\n";
t << "</script>\n";
if (!Config_getBool(DISABLE_INDEX))
@@ -2718,7 +2718,7 @@ void HtmlGenerator::writeExternalSearchPage()
t << "<script type=\"text/javascript\">\n";
t << "/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */\n";
t << "var searchBox = new SearchBox(\"searchBox\", \""
- << "search\",false,'" << theTranslator->trSearch() << "','" << Doxygen::htmlFileExtension << "');\n";
+ << "search\",'" << theTranslator->trSearch() << "','" << Doxygen::htmlFileExtension << "');\n";
t << "/* @license-end */\n";
t << "</script>\n";
if (!Config_getBool(DISABLE_INDEX))