summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-09 13:38:20 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-09 13:38:20 (GMT)
commit1044fcc0598ae428f8e5c4cd25600fcee84158bd (patch)
tree834da111d14579b403574eca2acf6b36c878bec2
parenta9d29861fe6ad3c182d6cded2e3636a20086fc96 (diff)
downloadDoxygen-1044fcc0598ae428f8e5c4cd25600fcee84158bd.zip
Doxygen-1044fcc0598ae428f8e5c4cd25600fcee84158bd.tar.gz
Doxygen-1044fcc0598ae428f8e5c4cd25600fcee84158bd.tar.bz2
Reverted the layout change introduced in a9d29861fe6ad3c182d6cded2e3636a20086fc96
- Caused issues with existing projects that customized the page header to add own navigation tabs (e.g. CGAL).
-rw-r--r--doc/layout_noindex_and_treeview.pngbin11914 -> 11847 bytes
-rw-r--r--src/htmlgen.cpp16
-rw-r--r--templates/html/header.html15
-rw-r--r--templates/html/navtree.js2
-rw-r--r--templates/html/resize.js4
-rw-r--r--templates/html/search_nomenu.css4
6 files changed, 20 insertions, 21 deletions
diff --git a/doc/layout_noindex_and_treeview.png b/doc/layout_noindex_and_treeview.png
index f0cd225..90e6608 100644
--- a/doc/layout_noindex_and_treeview.png
+++ b/doc/layout_noindex_and_treeview.png
Binary files differ
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index c15b205..fe00948 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -385,9 +385,9 @@ static QCString substituteHtmlKeywords(const QCString &str,
if (treeView)
{
treeViewCssJs = "<link href=\"$relpath^navtree.css\" rel=\"stylesheet\" type=\"text/css\"/>\n"
- "<script type=\"text/javascript\">var page_layout=";
- treeViewCssJs += Config_getBool(DISABLE_INDEX) ? "1" : "0";
- treeViewCssJs += ";</script>\n"
+ // "<script type=\"text/javascript\">var page_layout=";
+ //treeViewCssJs += Config_getBool(DISABLE_INDEX) ? "1" : "0";
+ //treeViewCssJs += ";</script>\n"
"<script type=\"text/javascript\" src=\"$relpath^resize.js\"></script>\n"
"<script type=\"text/javascript\" src=\"$relpath^navtreedata.js\"></script>\n"
"<script type=\"text/javascript\" src=\"$relpath^navtree.js\"></script>\n";
@@ -2559,11 +2559,11 @@ QCString HtmlGenerator::writeSplitBarAsString(const QCString &name,const QCStrin
// write split bar
if (generateTreeView)
{
- if (!Config_getBool(DISABLE_INDEX))
- {
- result += QCString(
- "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n");
- }
+ //if (!Config_getBool(DISABLE_INDEX))
+ //{
+ result += QCString(
+ "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n");
+ //}
result+= QCString(
" <div id=\"nav-tree\">\n"
" <div id=\"nav-tree-contents\">\n"
diff --git a/templates/html/header.html b/templates/html/header.html
index 7c5d14c..fd44048 100644
--- a/templates/html/header.html
+++ b/templates/html/header.html
@@ -17,11 +17,6 @@ $mathjax
$extrastylesheet
</head>
<body>
-<!--BEGIN DISABLE_INDEX-->
-<!--BEGIN GENERATE_TREEVIEW-->
-<div id="side-nav" class="ui-resizable side-nav-resizable">
-<!--END GENERATE_TREEVIEW-->
-<!--END DISABLE_INDEX-->
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<!--BEGIN TITLEAREA-->
@@ -46,13 +41,13 @@ $extrastylesheet
</td>
<!--END PROJECT_BRIEF-->
<!--END !PROJECT_NAME-->
+ <!--BEGIN DISABLE_INDEX-->
+ <!--BEGIN SEARCHENGINE-->
+ <td>$searchbox</td>
+ <!--END SEARCHENGINE-->
+ <!--END DISABLE_INDEX-->
</tr>
</tbody>
-<!--BEGIN DISABLE_INDEX-->
- <!--BEGIN SEARCHENGINE-->
- <td colspan="2" style="padding-top: 4px;">$searchbox</td>
- <!--END SEARCHENGINE-->
-<!--END DISABLE_INDEX-->
</table>
</div>
<!--END TITLEAREA-->
diff --git a/templates/html/navtree.js b/templates/html/navtree.js
index 254169f..2798368 100644
--- a/templates/html/navtree.js
+++ b/templates/html/navtree.js
@@ -326,7 +326,7 @@ function selectAndHighlight(hash,n)
$(n.itemDiv).attr('id','selected');
}
var topOffset=5;
- if (page_layout==1) {
+ if (typeof page_layout!=='undefined' && page_layout==1) {
topOffset+=$('#top').outerHeight();
}
if ($('#nav-tree-contents .item:first').hasClass('selected')) {
diff --git a/templates/html/resize.js b/templates/html/resize.js
index 699d15c..315b2ff 100644
--- a/templates/html/resize.js
+++ b/templates/html/resize.js
@@ -53,7 +53,7 @@ function initResizable()
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // default expiration is one week
expiration = date.toGMTString();
}
- document.cookie = cookie_namespace + "_" + cookie + "=" + val + "; expires=" + expiration+"; path=/";
+ document.cookie = cookie_namespace + "_" + cookie + "=" + val + "; SameSite=Lax; expires=" + expiration+"; path=/";
}
function resizeWidth()
@@ -77,7 +77,7 @@ function initResizable()
var footerHeight = footer.outerHeight();
var windowHeight = $(window).height();
var contentHeight,navtreeHeight,sideNavHeight;
- if (page_layout==0) { /* DISABLE_INDEX=NO */
+ if (typeof page_output==='undefined' || page_layout==0) { /* DISABLE_INDEX=NO */
contentHeight = windowHeight - headerHeight - footerHeight;
navtreeHeight = contentHeight;
sideNavHeight = contentHeight;
diff --git a/templates/html/search_nomenu.css b/templates/html/search_nomenu.css
index c7efd64..a169d65 100644
--- a/templates/html/search_nomenu.css
+++ b/templates/html/search_nomenu.css
@@ -8,8 +8,12 @@
white-space : nowrap;
float: none;
margin-top: 0px;
+ right: 0px;
width: 161px;
height: 24px;
+ z-index: 102;
+ display: inline;
+ position: absolute;
}
#MSearchBox .left