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

Flex gap fixes #2

Merged
merged 2 commits into from
Dec 21, 2021
Merged

Conversation

intergalacticspacehighway
Copy link
Collaborator

@intergalacticspacehighway intergalacticspacehighway commented Dec 21, 2021

Added some test cases for align-items stretch and align-content stretch.

Issue

Current cross offset for gap is handled using crossDimLead, it can create issues for cases when lineHeight is being used to generate the height. e.g. in align-items stretch.

Approach

Removed logic to mutate the lineHeight and add cross offset using currentLead instead of crossDimLead.

P.S. I know this already existed but lineHeight is confusing word! Here it means flexLineHeight but when I hear lineHeight, i often think about text line height 😓

@jacobp100
Copy link
Owner

Thanks for this! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants