mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 05:08:41 -09:00
term: fix resize events
This commit is contained in:
parent
6a7f1c4f57
commit
81bfbd6006
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export default class Term extends Component {
|
||||||
const io = this.term.io.push();
|
const io = this.term.io.push();
|
||||||
io.onVTKeystroke = io.sendString = props.onData;
|
io.onVTKeystroke = io.sendString = props.onData;
|
||||||
io.onTerminalResize = (cols, rows) => {
|
io.onTerminalResize = (cols, rows) => {
|
||||||
if (cols !== this.props.cols && rows !== this.props.rows) {
|
if (cols !== this.props.cols || rows !== this.props.rows) {
|
||||||
props.onResize(cols, rows);
|
props.onResize(cols, rows);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue