Skip to content

gpui: The parent element flex_col and its child element flex_1 did not achieve the expected result #40152

@zhangyuge6666

Description

@zhangyuge6666

Summary

div().h_full().bg(green_100()).flex_col().children([
div().h(px(50.)).bg(yellow_100()).child(format!("top")),
div().flex_1().bg(blue_100()).child(format!("bottom")),
])

Image

The expected result should have filled in the remaining part, but it didn't.

Zed Version and System Specs

Zed Preview 0.208.4
f4b75a8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions