mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Always update terminal size in demo
This commit is contained in:
+2
-3
@@ -410,9 +410,8 @@ function initOptions(term: TerminalType): void {
|
||||
} else {
|
||||
term.options[o] = parseInt(input.value);
|
||||
}
|
||||
if (['cols', 'rows', 'letterSpacing', 'lineHeight'].includes(o)) {
|
||||
updateTerminalSize();
|
||||
}
|
||||
// Always update terminal size in case the option changes the dimensions
|
||||
updateTerminalSize();
|
||||
});
|
||||
});
|
||||
Object.keys(stringOptions).forEach(o => {
|
||||
|
||||
Reference in New Issue
Block a user