linebender / linebender/druid

Look at how to help people with an infinite non-flex child.

Open
#1,116 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

This happens if you do something like

Flex::row()
    .with_child(Label::new("test").expand())

It seems to be a common source of errors (e.g. it was for me and on zulip). I'm making this issue because I want to have a look at this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Flex::row() example with Label::new("test").expand(), then trace how the layout handles an infinite non-flex child. The issue does not name files or tests; work is complete once the project has a concrete, agreed way to handle or explain this broken layout case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.