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 a bug where modifiers' effects continue after they're removed #2338

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

swankjesse
Copy link
Collaborator


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already had a test that demonstrated that our behavior was incorrect!

if (newRequestedMaxHeight neq oldRequestedMaxHeight) requestedMaxHeight = newRequestedMaxHeight
if (newFlexGrow neq oldFlexGrow) flexGrow = newFlexGrow
if (newFlexShrink neq oldFlexShrink) flexShrink = newFlexShrink
if (newFlexBasis neq oldFlexBasis) flexBasis = newFlexBasis
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@colinrtwhite colinrtwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@JakeWharton
Copy link
Collaborator

Linked from modifier removal detection issue. No one should have to do this.

@swankjesse swankjesse merged commit 3a40ceb into trunk Sep 27, 2024
11 checks passed
@swankjesse swankjesse deleted the jwilson.0927.modifier_changes branch September 27, 2024 19:21
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.

4 participants