Skip to content

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

Merged
NathanWalker merged 1 commit into
mainfrom
fix/layout-negative-width-bug
Sep 3, 2024
Merged

fix(layout): prevent negative width/height values#10616
NathanWalker merged 1 commit into
mainfrom
fix/layout-negative-width-bug

Conversation

@rigor789

@rigor789 rigor789 commented Sep 3, 2024

Copy link
Copy Markdown
Member

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
@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