summaryrefslogtreecommitdiffstats
path: root/templates/html/resize.js
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-08 14:41:58 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-08 14:41:58 (GMT)
commita9d29861fe6ad3c182d6cded2e3636a20086fc96 (patch)
tree1ce85df6be6068586bf010f5b1ab03eaa510d85d /templates/html/resize.js
parentae0844009961225fe7b9755cb5e3e0a2ee90f00c (diff)
parent12a6d876e3ff0004e288f1c7fadb10d0431bfc24 (diff)
downloadDoxygen-a9d29861fe6ad3c182d6cded2e3636a20086fc96.zip
Doxygen-a9d29861fe6ad3c182d6cded2e3636a20086fc96.tar.gz
Doxygen-a9d29861fe6ad3c182d6cded2e3636a20086fc96.tar.bz2
Merge branch 'sidebar_layout'
Diffstat (limited to 'templates/html/resize.js')
-rw-r--r--templates/html/resize.js18
1 files changed, 14 insertions, 4 deletions
diff --git a/templates/html/resize.js b/templates/html/resize.js
index e1ad0fe..699d15c 100644
--- a/templates/html/resize.js
+++ b/templates/html/resize.js
@@ -75,10 +75,20 @@ function initResizable()
{
var headerHeight = header.outerHeight();
var footerHeight = footer.outerHeight();
- var windowHeight = $(window).height() - headerHeight - footerHeight;
- content.css({height:windowHeight + "px"});
- navtree.css({height:windowHeight + "px"});
- sidenav.css({height:windowHeight + "px"});
+ var windowHeight = $(window).height();
+ var contentHeight,navtreeHeight,sideNavHeight;
+ if (page_layout==0) { /* DISABLE_INDEX=NO */
+ contentHeight = windowHeight - headerHeight - footerHeight;
+ navtreeHeight = contentHeight;
+ sideNavHeight = contentHeight;
+ } else if (page_layout==1) { /* DISABLE_INDEX=YES */
+ contentHeight = windowHeight - footerHeight;
+ navtreeHeight = windowHeight - headerHeight;
+ sideNavHeight = windowHeight;
+ }
+ content.css({height:contentHeight + "px"});
+ navtree.css({height:navtreeHeight + "px"});
+ sidenav.css({height:sideNavHeight + "px"});
var width=$(window).width();
if (width!=collapsedWidth) {
if (width<desktop_vp && collapsedWidth>=desktop_vp) {