fix(terminal) resizing

This commit is contained in:
coderaiser 2014-02-05 07:37:17 -05:00
parent 5ec1b7833a
commit 4e8c524dcb
2 changed files with 20 additions and 14 deletions

View file

@ -119,7 +119,10 @@ var CloudCmd, Util, DOM, CloudFunc, Terminal;
},
};
options[CHANNEL] = write;
options[CHANNEL] = write;
options[CHANNEL_RESIZE] = function(size) {
Term.resize(size.cols, size.rows);
};
socket.on(options);
@ -163,7 +166,7 @@ var CloudCmd, Util, DOM, CloudFunc, Terminal;
if (Size.cols !== cols || Size.rows !== rows) {
Size = size;
Term.resize(size.cols, size.rows);
//Term.resize(size.cols, size.rows);
Term.emit('resize', size);
}
}