Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(layout): prevent negative width/height values #10616

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

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

rigor789
Copy link
Member

@rigor789 rigor789 commented Sep 3, 2024

PR Checklist

What is the current behavior?

In some cases a negative width/height can happen, when the child width is 0, but the margins are subtracted from it.

What is the new behavior?

The width/height should never go negative.

Fixes/Implements/Closes #[Issue Number].

@NathanWalker NathanWalker merged commit 0506012 into main Sep 3, 2024
1 of 3 checks passed
@NathanWalker NathanWalker deleted the fix/layout-negative-width-bug branch September 3, 2024 15:59
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