diff options
-rw-r--r-- | doc/layout_noindex_and_treeview.png | bin | 11914 -> 11847 bytes | |||
-rw-r--r-- | src/htmlgen.cpp | 16 | ||||
-rw-r--r-- | templates/html/header.html | 15 | ||||
-rw-r--r-- | templates/html/navtree.js | 2 | ||||
-rw-r--r-- | templates/html/resize.js | 4 | ||||
-rw-r--r-- | templates/html/search_nomenu.css | 4 |
6 files changed, 20 insertions, 21 deletions
diff --git a/doc/layout_noindex_and_treeview.png b/doc/layout_noindex_and_treeview.png Binary files differindex f0cd225..90e6608 100644 --- a/doc/layout_noindex_and_treeview.png +++ b/doc/layout_noindex_and_treeview.png 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 |