From f5006a4ec998128fac66502e3fefbc41da971916 Mon Sep 17 00:00:00 2001 From: cigamit Date: Wed, 17 May 2017 22:30:50 -0500 Subject: [PATCH] Resolving Issues #667 and #700 In Classic theme, intial view of Tre view broken --- docs/CHANGELOG | 1 + include/themes/classic/main.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index c782dee4cb..0aa1dd34b5 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -5,6 +5,7 @@ Cacti CHANGELOG -issue#653: Devices with empty sysNames are not added to discovered devices -issue#655: Data source not displaying device name -issue#658: Scheduled Reports (type "tree") not working +-issue#667: In Classic theme initial view of Tree view broken -issue#669: Invalid SQL Messages when upgrading to Cacti 1.0.5 -issue#670: Validation error when you do "Change Graph Template" in Cacti -issue#672: Cacti unable to enable snmp notification receiver mibs diff --git a/include/themes/classic/main.js b/include/themes/classic/main.js index 0f344e391c..d0baaf8bd3 100644 --- a/include/themes/classic/main.js +++ b/include/themes/classic/main.js @@ -1,7 +1,7 @@ function themeReady() { height = get_height(); $('#navigation, .cactiConsoleNavigationArea').css('height', height); - $('#navigation').show(); + $('#navigation, #navigation_right').show(); $(window).unbind().resize(function(event) { if (pageName == 'graph_view.php') { @@ -24,5 +24,6 @@ function get_height() { nrsh = parseInt($('#navigation_right').prop('scrollHeight')); nh = parseInt($('#navigation').height()); nrh = parseInt($('#navigation_right').height()); - return Math.max(nsh, nrsh, nh, nrh); + wht = $(window).height(); + return Math.max(nsh, nrsh, nh, nrh, wht); }