Skip to content

Shared scroll core with variable-height items #152

Open

Description

@meszmate

RichLog, Viewport, VirtualList, List and the tables each have their own copy of offset clamping, follow mode and scrollbar drawing. They all assume one item = one row.

Would be nice to pull that into one module that handles items of any height: measure each item once for the current width, cache the row count, and track scroll position as (item index, row within item) instead of a bare row offset.

That's the piece #151 needs, and it would also let RichLog wrap long lines instead of overflowing.

Activity

  1. added
    enhancement
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions