From ad7c5bbbac9c2ffe8ea211fd5f77c6695790fa1c Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Mon, 28 Apr 2014 01:56:00 +0530 Subject: [PATCH] Add check when there is no #pma_navigation_tree_content Signed-off-by: Atul Pratap Singh --- js/navigation.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/navigation.js b/js/navigation.js index d7e4683f38..32b8519c0e 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -890,6 +890,11 @@ var ResizeHandler = function () { $nav_tree.height($nav.height() - $nav_header.height()); if ($nav_tree_content.length > 0) { $nav_tree_content.height($nav_tree.height() - $nav_tree_content.position().top); + } else { + //TODO: in fast filter search response there is no #pma_navigation_tree_content, needs to be added in php + $nav_tree.css({ + 'overflow-y': 'auto' + }); } }; /* Initialisation section begins here */