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(); } }