From 2f926fcf575effb900c5717b028c4b3a2f91ef4c Mon Sep 17 00:00:00 2001 From: fofolee Date: Thu, 2 Jul 2020 22:04:40 +0800 Subject: [PATCH] bug fix --- src/assets/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/index.js b/src/assets/index.js index 58b7187..309925e 100644 --- a/src/assets/index.js +++ b/src/assets/index.js @@ -128,9 +128,9 @@ let switchQuickCommandResult = (stdout, stderr, outputOpts) => { var output = outputOpts.type, autoScroll = outputOpts.autoScroll, autoHeight = outputOpts.autoHeight; var outputAutoFix = (autoScroll, autoHeight) => { - var outputHeight = $("#out").height() + 26 + var outputHeight = $("#out").height() + 20 if (outputHeight > 600) outputHeight = 600 - if (autoHeight) utools.setExpendHeight(outputHeight); + if (autoHeight && $('#options').is(':hidden')) utools.setExpendHeight(outputHeight); if (outputHeight == 600 && autoScroll) $(document).scrollTop($(document).height()); } if (stderr) {