Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[layout] Consider min-content in layout algorithms

Open
#14 0 comments 0 reactions 1 assignee View on GitHub

@TtTRz is already working on this.

Since Mar 25, 2025.

Assessment

This issue has not been assessed yet.

Description

float-pigment-layout

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>

Image

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

  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.

More from wechat-miniprogram/float-pigment

All issues in wechat-miniprogram/float-pigment

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.