mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-26 15:58:37 +00:00
Merge pull request #525 from LucianBuzzo/resize
Fix issue when resizing hidden terminals
This commit is contained in:
commit
03e46fbdee
@ -1715,6 +1715,10 @@ Terminal.prototype.error = function() {
|
|||||||
* @param {number} y The number of rows to resize to.
|
* @param {number} y The number of rows to resize to.
|
||||||
*/
|
*/
|
||||||
Terminal.prototype.resize = function(x, y) {
|
Terminal.prototype.resize = function(x, y) {
|
||||||
|
if (Number.isNaN(x) || Number.isNaN(y)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var line
|
var line
|
||||||
, el
|
, el
|
||||||
, i
|
, i
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user