term: fix resize events

This commit is contained in:
Guillermo Rauch 2016-07-14 15:02:13 -07:00
parent 6a7f1c4f57
commit 81bfbd6006

View file

@ -38,7 +38,7 @@ export default class Term extends Component {
const io = this.term.io.push();
io.onVTKeystroke = io.sendString = props.onData;
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);
}
};