Skip to content

vlist: keys_from doc example collapses to zero height #434

Closed

Description

@samitbasu

Found in #401: a virtual_list given only max_h_px is 0 tall, because a scroll container is as tall as it's told. The keys_from doc example (src/vlist.rs ~238, max_h_px(300.0)) therefore renders as an empty sliver. Fix the example. Also consider whether a vlist with only a max height should size to its rows up to that max (what #401's list::show now does by hand), so callers can't hit this.

Activity

  1. samitbasu commented on Nov 20, 2026

    @samitbasu
    OwnerAuthor

    Decision (user, 2026-11-20): a virtual list given only a max height sizes itself to its rows, up to that max, instead of collapsing to 0 tall. That removes the trap behind #401's empty lists, and #401's hand-sizing in list::show can then go. The doc-example fix is #450.

  2. added a commit that references this issue on Nov 20, 2026
  3. added a commit that references this issue on Nov 20, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions