Repository: godotengine/godot (language: cpp)

Issue:
Project Settings scroll position not reset when changing category
### Tested versions

4.4.1 stable mono

### System information

Windows 10x64, Nvidia

### Issue description

In Project Settings, the scroll position of the category is not reset when you click the next category of settings.


### Steps to reproduce

Go to 'Project Settings', click '_Advanced Settings_' to ON.

Scroll down to a Category with a long page of settings, like '_Rendering_' -> '_Rendering Device_'
Scroll down to the bottom of the '_Rendering Device_' list of settings

Now click _another_ Category, like '_Textures_'
See how the 'Textures' page is scrolled down now too, even though we didnt scroll it?


### Minimal reproduction project (MRP)

None


Discussion / hints:
I'd like to try to fix this if no one else is currently working on a solution.

Fix patch:
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index 94fda334922f..c014967d0692 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/editor/editor_sectioned_inspector.cpp
@@ -150,6 +150,7 @@ void SectionedInspector::_section_selected() {
 	selected_category = sections->get_selected()->get_metadata(0);
 	filter->set_section(selected_category, sections->get_selected()->get_first_child() == nullptr);
 	inspector->set_property_prefix(selected_category + "/");
+	inspector->set_v_scroll(0);
 }
 
 void SectionedInspector::set_current_section(const String &p_section) {


Test patch: