Skip to content

Feature request: Nested collapsible/expandable lists to the Scroll #339

@MiMoer

Description

@MiMoer
Image

I'd like to add native support for nested collapsible/expandable lists to the Scroll component, similar to how Engine's Child Layout Group works.

Currently, implementing nested lists with collapsible sections in Druid requires a lot of boilerplate code: manually handling show/hide, recalculating Scroll content size, managing input priority for nested Scrolls, and dealing with layout jumps after expand/collapse.

The main features I'm looking for are:

  1. Built-in support for nested Scroll views, with automatic input and stencil handling
  2. Native collapsible/expandable components that integrate with Scroll's Grid layout
  3. Automatic content size recalculation when sections expand/collapse
  4. Optional size constraints (min/max width/height, aspect ratio control) for nested items, similar to the Child Layout options in the attached screenshot

This would greatly simplify building common UI patterns like:

  • Settings menus with expandable categories
  • Inventory/shop category lists
  • Quest logs with expandable task details
  • Achievement/collection lists with group sections

Attached screenshot shows the kind of layout controls I'm referring to (Child Layout size overrides, min/max dimensions, aspect ratio).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions