Skip to content

[layout] Consider min-content in layout algorithms #14

Description

@TtTRz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions