Skip to content

Flex gap fixes#2

Merged
jacobp100 merged 2 commits intojacobp100:gapfrom
intergalacticspacehighway:flex-gap-fixes
Dec 21, 2021
Merged

Flex gap fixes#2
jacobp100 merged 2 commits intojacobp100:gapfrom
intergalacticspacehighway:flex-gap-fixes

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