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 <iamajmalhassan@gmail.com>
This commit is contained in:
Ajmal Hassan 2023-02-07 12:05:29 +05:30 committed by GitHub
parent e95c377de9
commit 5b65969940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');