You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Make tab containers in editor, project settings, and export dialog, to use hidden tabs for min size computation.
This commit is contained in:
@@ -294,7 +294,8 @@ void ProjectSettingsEditor::_device_input_add() {
|
||||
ie = jb;
|
||||
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
if (idx < 0 || idx >= events.size()) {
|
||||
@@ -519,7 +520,8 @@ void ProjectSettingsEditor::_add_item(int p_item, Ref<InputEvent> p_exiting_even
|
||||
}
|
||||
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1679,6 +1681,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||
|
||||
tab_container = memnew(TabContainer);
|
||||
tab_container->set_tab_align(TabContainer::ALIGN_LEFT);
|
||||
tab_container->set_use_hidden_tabs_for_min_size(true);
|
||||
add_child(tab_container);
|
||||
|
||||
VBoxContainer *props_base = memnew(VBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user