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 resetting height after re-computation (second attempt) #28

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

Lodin
Copy link
Owner

@Lodin Lodin commented Aug 10, 2020

Fixes #25 (part two).

This PR fixes the part of the #25 issue that left after the #26. The issue happened because VariableSizeList#resetAfterIndex method was called incorrectly which caused preserving the height of the node event if the real height has changed. With this PR, the resetting is performed correctly, and any change of the tree structure calls resetAfterIndex method.

@Lodin Lodin self-assigned this Aug 10, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Lodin Lodin merged commit 8cb7a7c into master Aug 10, 2020
@Lodin Lodin deleted the fix/recompute-on-expand branch August 10, 2020 15:31
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.

VariableSizeTree height does not behave as expected from upgrading to v2.0.0
1 participant