summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-05-24 19:08:04 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-05-24 19:08:04 (GMT)
commitee9a0664c03c306d0aeb127295ced29f8078ae03 (patch)
tree96f60cfc1e3c0c1adda58af92bf19e1a8a47a8e4 /src
parentf96cb4bae6b8267c90b8b8c74f25f516b75cc2aa (diff)
downloadDoxygen-ee9a0664c03c306d0aeb127295ced29f8078ae03.zip
Doxygen-ee9a0664c03c306d0aeb127295ced29f8078ae03.tar.gz
Doxygen-ee9a0664c03c306d0aeb127295ced29f8078ae03.tar.bz2
Fix search box rendering in HTML when menu bar is disabled
Diffstat (limited to 'src')
-rw-r--r--src/htmlgen.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 54820ec..069cafa 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -817,13 +817,16 @@ void HtmlGenerator::writeSearchData(const char *dir)
if (f.open(IO_WriteOnly))
{
FTextStream t(&f);
- QCString searchCss = replaceColorMarkers(mgr.getAsString("search.css"));
- searchCss = substitute(searchCss,"$doxygenversion",versionString);
+ QCString searchCss;
if (Config_getBool(DISABLE_INDEX))
{
- // move up the search box if there are no tabs
- searchCss = substitute(searchCss,"margin-top: 8px;","margin-top: 0px;");
+ searchCss = mgr.getAsString("search_nomenu.css");
}
+ else
+ {
+ searchCss = mgr.getAsString("search.css");
+ }
+ searchCss = substitute(replaceColorMarkers(searchCss),"$doxygenversion",versionString);
t << searchCss;
Doxygen::indexList->addStyleSheetFile("search/search.css");
}