Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sizing and alignment issues with multi-line containers #41916

Closed
wants to merge 1 commit into from

Commits on Dec 16, 2023

  1. Fix sizing and alignment issues with multi-line containers (facebook#…

    …41916)
    
    Summary:
    X-link: facebook/yoga#1513
    
    
    Fixes facebook/yoga#1300
    Fixes facebook/yoga#1008
    
    This fixes a smattering of issues related to both sizing and aligment of multi-line-containers:
    
    1. We were previously incorrectly bounding the size of each flex line to the min/max of the entire container.
    2. Per-line leads were sometimes incorrectly contributing to alignment within the line
    3. The cross dim size used for multi-line alignment is not correct, or correctly clamped. If the available size comes from a max constraint, that was incorrectly used instead of a definite size, or size of content. Leads were entirely skipped for min constraint.
    
    Need to test how breaking this is, to see if it might need to go behind an errata.
    
    See related PRs:
    1. facebook/yoga#1491
    2. facebook/yoga#1493
    3. facebook/yoga#1013
    
    Changelog:
    [General][Fixed] - Fix Yoga sizing and alignment issues with multi-line containers
    
    Reviewed By: joevilches
    
    Differential Revision: D52087013
    NickGerleman authored and facebook-github-bot committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    cfc4e64 View commit details
    Browse the repository at this point in the history