Skip to content

Height of the scrollable content match the constraint (Solution found) #1

@BenoitManhesLunabee

Description

@BenoitManhesLunabee

To match scrollable content height and constraint, you can use Dimension.preferredWrapContent. It's a kind of wrap content with constraint, it's not perfect but better than padding at the bottom.

constrain(content) {
        height = Dimension.preferredWrapContent
        // ...
        bottom.linkTo(parent.bottom)
    }

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