-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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 get_item_area_rect
when tree is scrolled
#102116
base: master
Are you sure you want to change the base?
Conversation
get_item_area_rect
when tree is scrolled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good and seems to be working as expected.
But some places in the editor code use this and do adjust for scroll manually, so these should be changed as well.
Vector2 popup_pos = tree->get_screen_transform().xform(pos.position + Vector2(0, pos.size.height)) - tree->get_scroll(); |
Vector2 popup_pos = tree->get_screen_transform().xform(pos.position + Vector2(0, pos.size.height)) - tree->get_scroll(); |
a0be012
to
05d6974
Compare
Fixed in animation_library_editor.cpp. Other issuesFound some other already existing issues, that I currently don't know how to fix. RtLRect position of specified column is not correct when control is set to RtL Screencast_20250128_091631.webmButton and expanding columnsButtons rect position is not correct. Believe it is because it's using full width even when columns is not fully expanded. Should these issues be reported as separate issues that can be fixed in a new pr? |
If you already have a fix, it can be added directly to this PR, if not open a new issue. |
I have some potential fixes for some of the other issues, the RtL is actually two different issues. Should I still push the fixes to this PR (might be a day or two)? But also discovered more issues with the tree, don't think I can solve all of them or if they would be correct to put in this PR. If they are not already reported I will make new issues for them later. |
05d6974
to
bde87db
Compare
Updated PR with new fixes. RtLShould now work for column and buttons. Button rect
There is an issue #100645 with the buttons jiggiling when scrolling horizontally. This makes the rect be slightly off in some cases. But the fix should most likley be to stop them from jiggiling around. Theme properiesShould account for theme properties now. Fixes: #71997 Not sure if the first option (TreeItem) should include horizontal theme properties or not. Can add them in if they should be accounted for. DescriptionThere might also be a problem with the description, it says:
It sounds like it should give a rect that have the size of all combined columns when only specifing a TreeItem? |
Fixes: #102115
Updated with more fixes, see #102116 (comment)
Fixes: #71997