Replace function call from term.fit() to addons.fit.instance.fit()
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ const paddingElement = <HTMLInputElement>document.getElementById('padding');
|
|||||||
|
|
||||||
function setPadding(): void {
|
function setPadding(): void {
|
||||||
term.element.style.padding = parseInt(paddingElement.value, 10).toString() + 'px';
|
term.element.style.padding = parseInt(paddingElement.value, 10).toString() + 'px';
|
||||||
term.fit();
|
addons.fit.instance.fit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSearchOptions(e: KeyboardEvent): ISearchOptions {
|
function getSearchOptions(e: KeyboardEvent): ISearchOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user