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 Inspector may scrolls away when editing a property that adds or removes sub properties #96542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Maran23
Copy link
Contributor

@Maran23 Maran23 commented Sep 3, 2024

Fixes: #96489

The fix done in #92108 was not enough to elimate the scrolling issue completely.
This PR fixes the problem by doing two things:

  • Sub EditorInspectors have their follow_focus set to false, as they do not have a vertical scroll bar (SCROLL_MODE_DISABLED) and that property is handled by the root (=main) EditorInspector anyway
  • The follow_focus is only changed for the root EditorInspector, that is the top Inspector that contains all the sub EditorInspectors (and that may contain again sub EditorInspectors)

To do this, I utilized the already existing sub inspector flag and refactored it to a reference to the root inspector instead.

unknown_2024.09.04-00.36.mp4

Also removed an obsolete TODO that exists since 6 years and makes no sense (that the filter is enabled is correct, so that the search bar works)

@Maran23 Maran23 requested a review from a team as a code owner September 3, 2024 23:04
@KoBeWi KoBeWi added this to the 4.4 milestone Sep 3, 2024
@Maran23 Maran23 requested a review from a team as a code owner September 3, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inspector scrolls away from focused item automatically
2 participants