Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion html/src/components/terminal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Terminal extends Component<Props, State> {

render({ id }: Props, { modal }: State) {
return (
<div id={id} ref={c => (this.container = c as HTMLElement)}>
<div id={id} ref={c => void (this.container = c as HTMLElement)}>
<Modal show={modal}>
<label class="file-label">
<input onChange={this.sendFile} class="file-input" type="file" multiple />
Expand Down
6 changes: 5 additions & 1 deletion html/src/components/terminal/xterm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,14 @@ export class Xterm {
} else {
terminal.options[key] = value;
}
if (key.indexOf('font') === 0) fitAddon.fit();
break;
}
}

// ponytail: renderer switches (e.g. the default dom -> webgl) change measured cell
// size without ever re-fitting, leaving the terminal undersized until a real window
// resize forces a refit. One fit after prefs settle covers font/renderer changes.
fitAddon.fit();
}

@bind
Expand Down
Loading