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 issue where scrolling to item center would overflow on top #98829

Merged

Conversation

adamscott
Copy link
Member

This PR fixes an issue where a tree scroll could overflow if the scrolling is centered to the item and that the calculation to take into account the items' final height is negative. As the y_offset subtracts the final height of the item, it results in a positive scroll position, when it should be really 0.

Fix #93899
Supersedes #93918

@adamscott adamscott added bug topic:editor usability cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Nov 4, 2024
@adamscott adamscott added this to the 4.4 milestone Nov 4, 2024
@adamscott adamscott requested a review from a team as a code owner November 4, 2024 20:53

Verified

This commit was signed with the committer’s verified signature.
adamscott Adam Scott
@adamscott adamscott force-pushed the fix-tree-scroll-center-overflow branch from 605515b to 49f918e Compare November 5, 2024 17:50
@Repiteo Repiteo merged commit 52ce3c7 into godotengine:master Nov 10, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 10, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:editor usability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Create New Node" dialog main scrolling area is not scrolled up to the top when summoning it
4 participants