Skip to content

Size input rows from the element's text style - #414

Merged
Ernxst merged 1 commit into
mainfrom
fix/input-line-height
Sep 9, 2026
Merged

Ernxst merged 1 commit into
mainfrom
fix/input-line-height

Conversation

@Ernxst

@Ernxst Ernxst commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

The editor's measure closure took its row height from the window's root text style, which is the ambient style by the time taffy runs it, so `lineHeight` on an `` or `<textarea>` was never read and `fontSize` only changed wrapping: every row was 26px. Read the height from the refined text style the closure already receives. A pixel `lineHeight` is used as given; without one, `fontSize` scales the row by the same ratio `` uses, so `minRows` and `maxRows` follow the text style.

Mirrors remorses/gpuix#63.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P3QFNpfZEpLtA1nKizz15g

The editor's measure closure took the row height from the window's root text style, which is the ambient style by the time taffy runs it, so lineHeight was never read and fontSize only changed wrapping. Read it from the refined TextStyle the closure already receives.

Mirrors remorses/gpuix#63.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P3QFNpfZEpLtA1nKizz15g
@Ernxst
Ernxst merged commit aaae322 into main Sep 9, 2026
@Ernxst
Ernxst deleted the fix/input-line-height branch September 21, 2026 18:09
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.

1 participant