Skip to content

Measure block should be told the constraint size after clamping with min/max dimensions #201

@molon

Description

@molon

Thanks for the great library first.

css-layout call the measure block first https://github.com/facebook/css-layout/blob/6e05325f08207f624f5e2ef14c9301f6a6538bf8/src/Layout.c#L672-L709 and processing with boundAxis method second.

It lead us to have to clamp the constraint size with min/max dimensions ourself when we create a measure block.

Sorry, poor english lead to unclear expression.
Here is a demo below:
https://github.com/molon/MLLayout/tree/IssueOfCssLayout
The test located in SimpleViewController.m
https://github.com/molon/MLLayout/blob/IssueOfCssLayout/Example/MLLayoutDemo/SimpleViewController.m#L113-L133

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions