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