From 5b6596994062bf636c329a8565fe553965e1d5c9 Mon Sep 17 00:00:00 2001 From: Ajmal Hassan Date: Tue, 7 Feb 2023 12:05:29 +0530 Subject: [PATCH] Fix for #18060 Console height "Not a non-negative number" error Passed the height through Math.round() function before it gets stored in the session. Signed-off-by: Ajmal Hassan --- js/src/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/console.js b/js/src/console.js index b266fb5b3e..e130fd4fac 100644 --- a/js/src/console.js +++ b/js/src/console.js @@ -487,7 +487,7 @@ var ConsoleResizer = { * @return {void} */ mouseUp: function () { - Console.setConfig('Height', ConsoleResizer.resultHeight); + Console.setConfig('Height', Math.round(ConsoleResizer.resultHeight)); Console.show(); $(document).off('mousemove'); $(document).off('mouseup');