Move window resize listeners over to onWindowChange

This commit is contained in:
Daniel Imms
2023-10-17 09:10:04 -07:00
parent 92535e539f
commit 6e12d94f11
6 changed files with 31 additions and 12 deletions
+2 -1
View File
@@ -973,7 +973,8 @@ declare module 'xterm' {
resize(columns: number, rows: number): void;
/**
* Opens the terminal within an element.
* Opens the terminal within an element. This should also be called if the
* xterm.js element ever changes browser window.
* @param parent The element to create the terminal within. This element
* must be visible (have dimensions) when `open` is called as several DOM-
* based measurements need to be performed when this function is called.