From af32d6166341c0345ce15f3853a9c35e5d5e557f Mon Sep 17 00:00:00 2001 From: Lakshay arora Date: Sun, 18 Feb 2018 04:38:43 +0530 Subject: [PATCH] Set console max height, issue #14022 Changed: js/console.js Before showing the console, set the height to minimum between current set height and height of the display window. Signed-Off-By: Lakshay arora (b16060@students.iitmandi.ac.in) --- js/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/console.js b/js/console.js index 3113b4bea8..b657bdaa00 100644 --- a/js/console.js +++ b/js/console.js @@ -281,7 +281,7 @@ var PMA_console = { PMA_console.setConfig('Mode', 'show'); var pmaConsoleHeight = Math.max(92, PMA_console.config.Height); - + pmaConsoleHeight = Math.min(PMA_console.config.Height, (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight)-25); PMA_console.$consoleContent.css({ display:'block' }); if (PMA_console.$consoleToolbar.hasClass('collapsed')) { PMA_console.$consoleToolbar.removeClass('collapsed');