mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 04:33:09 +00:00
fix(terminal) resizing
This commit is contained in:
parent
5ec1b7833a
commit
4e8c524dcb
2 changed files with 20 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue