Skip to content

[Feature] item components need a better mechanism to render its content with the automatic content mode. #18

Description

@royhsu

It's unclear how to render the estimated size with the width value 0.0, and height value 0.0.

The code below seems unnecessary.

    // Avoid the item view rendering 0.0 width without a width constraint.
    if
        itemView.frame.width == 0.0
        && estimatedSize.width >= 0.0 {

        itemView.frame.size.width = estimatedSize.width

    }

    // Avoid the item view rendering 0.0 height without a height constraint.
    if
        itemView.frame.height == 0.0
        && estimatedSize.height >= 0.0 {

        itemView.frame.size.height = estimatedSize.height

    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions