Skip to content

Grow list rows by the measured wrapped lines of label and subtitle - #37

Merged
itsthisjustin merged 1 commit into
Free-Ink:mainfrom
oreglio:feat/list-wrapped-label-heights
Aug 14, 2026
Merged

Grow list rows by the measured wrapped lines of label and subtitle#37
itsthisjustin merged 1 commit into
Free-Ink:mainfrom
oreglio:feat/list-wrapped-label-heights

Conversation

@oreglio

@oreglio oreglio commented Aug 14, 2026

Copy link
Copy Markdown

Rebased on main — this now composes with 58d34b3 (subtitle wrapping) rather than overlapping it:

  • The label above a subtitle can wrap too: the label band takes its measured lines and the (possibly wrapped) subtitle moves below it. This covers the title-plus-author list shape (an e-reader library shelf), where the LABEL carries the long text — 58d34b3 covered the complementary case where the subtitle does.
  • Measured lines, not the maxLines budget: label-only rows now grow by the lines the label actually uses — a two-line title in a three-line budget costs one extra line, not two.
  • Host tests for both mechanisms (neither had any): exact-lines label growth, wrapped-subtitle growth, subtitle placement under the wrapped band, and the touch-size gate.

Running validated on hardware (Xteink X4, CrossInk fork of crosspoint-reader). test/host/run.sh: 2669 checks; the only failures are the 3 pre-existing ones on main (battery bolt tests still expecting triangles after 2fea991 switched to a pixel bitmap, plus one Line-op count) — unrelated, happy to fix separately.

No API change; callers that never set maxLines > 1 are untouched.

Composes with 58d34b3 (subtitle wrapping): the label above a subtitle can
now wrap too — the band takes its measured lines and the (possibly
wrapped) subtitle moves below it — covering the title-plus-author list
shape where the label carries the long text. Label-only rows now grow by
the lines the label actually USES instead of the full maxLines budget: a
two-line title in a three-line budget costs one extra line, not two.

Adds the host tests both mechanisms were missing: exact-lines label
growth, wrapped-subtitle growth, subtitle placement under the wrapped
band, and the touch-size gate. Callers that never set maxLines > 1 are
untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Rw7SpQcLpRTfXSSiMizQj
@oreglio
oreglio force-pushed the feat/list-wrapped-label-heights branch from c554739 to f6f5940 Compare August 14, 2026 10:17
@oreglio oreglio changed the title Grow list rows by measured wrapped label lines, subtitle rows included Grow list rows by the measured wrapped lines of label and subtitle Aug 14, 2026
@itsthisjustin
itsthisjustin merged commit 873a263 into Free-Ink:main Aug 14, 2026
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.

3 participants