react / react/yoga

Parent components ignore minHeight when parent's flexDirection is column

Open
#1,683 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18.9k
Forks
1.6k
Avg merge
1m
Merged PRs (30d)
1

Description

<Layout config={{useWebDefaults: false}}>
<Node style={{width: 350, padding: 20, display: 'flex', flexDirection: 'row'}}>
<Node style={{display: 'flex', flexGrow: 1, flexShrink: 1, flexBasis: 0, flexDirection: 'column'}}>
<Node style={{width: 20, height: 20, minHeight: 40}} />

<Node style={{display: 'flex', flexGrow: 1, flexShrink: 1, flexBasis: 0, flexDirection: 'column'}}>
<Node style={{width: 20, height: 20 }} />


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 Layout and Node configuration shown in the issue and inspect the computed height of the first column-direction parent and its child. Compare it with the sibling branch without minHeight; done means the minHeight value is respected when the parent uses flexDirection column.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.