mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
bug fix
This commit is contained in:
parent
dfea680311
commit
2f926fcf57
@ -128,9 +128,9 @@
|
|||||||
let switchQuickCommandResult = (stdout, stderr, outputOpts) => {
|
let switchQuickCommandResult = (stdout, stderr, outputOpts) => {
|
||||||
var output = outputOpts.type, autoScroll = outputOpts.autoScroll, autoHeight = outputOpts.autoHeight;
|
var output = outputOpts.type, autoScroll = outputOpts.autoScroll, autoHeight = outputOpts.autoHeight;
|
||||||
var outputAutoFix = (autoScroll, autoHeight) => {
|
var outputAutoFix = (autoScroll, autoHeight) => {
|
||||||
var outputHeight = $("#out").height() + 26
|
var outputHeight = $("#out").height() + 20
|
||||||
if (outputHeight > 600) outputHeight = 600
|
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 (outputHeight == 600 && autoScroll) $(document).scrollTop($(document).height());
|
||||||
}
|
}
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user