Always update terminal size in demo

This commit is contained in:
Daniel Imms
2022-07-31 12:19:39 -07:00
parent 1ede106ab4
commit 8d92f91029
+2 -3
View File
@@ -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 => {