`修正透明命令显示隐藏`在显示和隐藏输出栏时的响应.

pull/294/MERGE
ChenX 5 years ago
parent 67ceed6e54
commit 89ce45f48e

@ -31,18 +31,19 @@ export class CommandInputUI extends React.Component<{ commandStore?: CommandStor
{ {
let size = this.rnd.resizable.size; let size = this.rnd.resizable.size;
let p = this.rnd.getDraggablePosition(); let p = this.rnd.getDraggablePosition();
const store = this.props.commandStore;
if (size.height > CommandInputHeight) if (size.height > CommandInputHeight)
{ {
this.rnd.updateSize({ width: size.width, height: CommandInputHeight }); this.rnd.updateSize({ width: size.width, height: CommandInputHeight });
this.rnd.updatePosition({ x: p.x, y: p.y + size.height - CommandInputHeight }); this.rnd.updatePosition({ x: p.x, y: p.y + size.height - CommandInputHeight });
store.isTransparentTerminalShow = true;
} }
else else
{ {
this.rnd.updateSize({ width: size.width, height: CommandInputHeight + 300 }); this.rnd.updateSize({ width: size.width, height: CommandInputHeight + 300 });
this.rnd.updatePosition({ x: p.x, y: p.y - 300 }); this.rnd.updatePosition({ x: p.x, y: p.y - 300 });
store.isTransparentTerminalShow = false;
} }
this.UpdateTransparentTerminalDisplay();
} }
} }

Loading…
Cancel
Save