Skip to content

fix(terminal): refit grid after enabling WebGL - #114

Merged
howdeploy merged 1 commit into
howdeploy:mainfrom
Yt4aZaveta:codex/fix-webgl-grid-refit
Oct 1, 2026
Merged

howdeploy merged 1 commit into
howdeploy:mainfrom
Yt4aZaveta:codex/fix-webgl-grid-refit

Conversation

@Yt4aZaveta

Copy link
Copy Markdown
Contributor

Problem

When a terminal card switched from the DOM renderer to WebGL, xterm kept the grid fitted for the DOM cell width. WebGL snaps cells to device pixels, so the existing PTY dimensions could leave a visible empty strip on the right and make the terminal appear narrowed.

Change

Refit the terminal immediately after WebGL is attached, using the existing fit and PTY resize path. DOM and WebGL renderer transitions now both fit with the active renderer.

Validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants