We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6273bcf commit 8c4b403Copy full SHA for 8c4b403
Extensions/TerminalService/TerminalExtension.swift
@@ -130,7 +130,10 @@ private struct MultiTerminalView: View {
130
)
131
.onAppear(perform: {
132
guard let terminal = App.terminalManager.activeTerminal else { return }
133
- fitTerminalIfReady(terminal)
+ // Allow WKWebView to get the correct frame size before calling fit
134
+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
135
+ fitTerminalIfReady(terminal)
136
+ }
137
})
138
.onChange(of: App.terminalManager.activeTerminalId) { _ in
139
guard let terminal = App.terminalManager.activeTerminal else {
0 commit comments