You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
textarea and input ignore lineHeight and fontSize, the row is always 26px #63
lineHeight is part of the shared Style interface, so TypeScript accepts it on <textarea> and <input>. But those elements ignore it. The row is always 26px, and changing fontSize doesn't change it either.
I tested this with @gpuix/react and @gpuix/native 0.7.0 on macOS arm64, with the native module built from cbc3de0, using createTestRoot and getElementBounds:
Property
Values I tried
Box height
lineHeight
16, 18, 20, 24, unset
26px (1 row), 78px (3 rows)
fontSize
10, 12, 14, 16, 20, 28
26px
height
20, 22, 26, 30
works as expected
Only an explicit height changes the box, but it also overrides minRows and maxRows, so a composer that grows with its content can't use it.
This is also different from <code>, where the docs say rows scale with fontSize.
Activity
Size input rows from the element's text style (#414)
release: @gpuix/[email protected] and @gpuix/[email protected]
A paint-only animation on content nobody sees costs the page nothing,…
Replaying an unchanged retained root costs the same however many elem…
Marking a replay as live costs one insert, however many subtrees are …
The per-frame work for a paint-only animation nobody sees no longer r…
A dormant element costs a frame nothing while nothing about it change…