소스 검색

Merge pull request #105132 from ProgrammerOnCoffee/fix-projectsettings-scroll

Reset `ProjectSettings` scroll when changing category
Thaddeus Crews 5 달 전
부모
커밋
aad0bdd730
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      editor/editor_sectioned_inspector.cpp

+ 1 - 0
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) {