Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed May 15, 2023
1 parent c7581b5 commit 5b20f76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this._container = container;
this._container.appendChild(this._wrapperElement);
this._onDidAttachToElement.fire(this._container);
this.xterm?.refresh();

setTimeout(() => this._initDragAndDrop(container));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal, II
}

attachToElement(container: HTMLElement): HTMLElement {
// Update the theme when attaching as the terminal location could have changed
this._updateTheme();
if (!this._container) {
this.raw.open(container);
}
Expand Down

0 comments on commit 5b20f76

Please sign in to comment.