From 89ce45f48eb2e4bcd3d51cd5039da11987e9a132 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 9 May 2019 01:22:10 +0800 Subject: [PATCH] =?UTF-8?q?`=E4=BF=AE=E6=AD=A3=E9=80=8F=E6=98=8E=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F`=E5=9C=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=92=8C=E9=9A=90=E8=97=8F=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=A0=8F=E6=97=B6=E7=9A=84=E5=93=8D=E5=BA=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/CommandInput/CommandInputUI.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UI/Components/CommandInput/CommandInputUI.tsx b/src/UI/Components/CommandInput/CommandInputUI.tsx index 3be70e0a7..df72e1c0a 100644 --- a/src/UI/Components/CommandInput/CommandInputUI.tsx +++ b/src/UI/Components/CommandInput/CommandInputUI.tsx @@ -31,18 +31,19 @@ export class CommandInputUI extends React.Component<{ commandStore?: CommandStor { let size = this.rnd.resizable.size; let p = this.rnd.getDraggablePosition(); + const store = this.props.commandStore; if (size.height > CommandInputHeight) { this.rnd.updateSize({ width: size.width, height: CommandInputHeight }); this.rnd.updatePosition({ x: p.x, y: p.y + size.height - CommandInputHeight }); + store.isTransparentTerminalShow = true; } else { this.rnd.updateSize({ width: size.width, height: CommandInputHeight + 300 }); this.rnd.updatePosition({ x: p.x, y: p.y - 300 }); + store.isTransparentTerminalShow = false; } - - this.UpdateTransparentTerminalDisplay(); } }