Skip to content

Commit 489d6e2

Browse files
committed
fix browser page width on load issue with timeout
1 parent eccebc6 commit 489d6e2

File tree

1 file changed

+3
-1
lines changed
  • html/src/components/terminal/xterm

1 file changed

+3
-1
lines changed

html/src/components/terminal/xterm/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export class Xterm {
166166
terminal.loadAddon(webLinksAddon);
167167

168168
terminal.open(parent);
169-
fitAddon.fit();
169+
setTimeout(() => {
170+
fitAddon.fit();
171+
}, 100);
170172
}
171173

172174
@bind

0 commit comments

Comments
 (0)