Merge pull request #3136 from kena0ki/termfit

Fix "term.fit is not a function" error when change padding value in the demo
This commit is contained in:
Daniel Imms
2020-10-30 12:23:17 -07:00
committed by GitHub
+1 -1
View File
@@ -93,7 +93,7 @@ const paddingElement = <HTMLInputElement>document.getElementById('padding');
function setPadding(): void {
term.element.style.padding = parseInt(paddingElement.value, 10).toString() + 'px';
term.fit();
addons.fit.instance.fit();
}
function getSearchOptions(e: KeyboardEvent): ISearchOptions {