[layout] Consider min-content in layout algorithms
@TtTRz is already working on this.
Since Mar 25, 2025.
Assessment
This issue has not been assessed yet.
Description
The current implementation does not consider the min-content of items, which may lead to unexpected compression of certain nodes.
<div style="display: flex; flex-direction: column; height: 100px;">
<div>32x16</div>
<div style="height: 100px; width: 100px;"></div>
<div style="height: 100px; width: 100px;"></div>
</div>
The container is being shrunk due to flex-shrink, while the expected height should be the child's min-content.
This feature needs to be implemented not only in the Flex Layout algorithm but also in other layout algorithms.
- Dominant language
- Rust
- Stars
- 17
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wechat-miniprogram/float-pigment
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
wechat-miniprogram/float-pigment#42 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
[layout] Support overflow in layoutMay be free again @LastLeaf claimed this 279 days ago, and no pull request is open. Openenhancement
wechat-miniprogram/float-pigment#28 · 1 assignee ·
-
[CSS] Enhanced WASM interfaceMay be free again @TtTRz claimed this 496 days ago, and no pull request is open. Openenhancement float-pigment-css
wechat-miniprogram/float-pigment#23 · 1 assignee ·
-
[layout] Support Formatting ContextMay be free again @TtTRz claimed this 553 days ago, and no pull request is open. Openfloat-pigment-layout
wechat-miniprogram/float-pigment#17 · 1 assignee ·
All issues in wechat-miniprogram/float-pigment
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
vercel-labs/agent-browser#2017 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tursodatabase/turso#9405 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolyMeilex/Neothesia#447 ·
Maintainers usually reply within 1 day
-
backend::vllm diffusion multimodal
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
trezor/trezor-firmware#7985 ·
Maintainers usually reply within 2 days