Merge pull request #61661 from timothyqiu/pm-space

[3.x] Fix empty space after project sort options
This commit is contained in:
Rémi Verschelde 2022-06-04 15:44:16 +02:00 committed by GitHub
commit 4ff41cc4f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2490,10 +2490,9 @@ ProjectManager::ProjectManager() {
project_order_filter = memnew(ProjectListFilter);
project_order_filter->add_filter_option();
project_order_filter->_setup_filters(sort_filter_titles);
project_order_filter->set_filter_size(150);
project_order_filter->set_filter_size(180);
sort_filters->add_child(project_order_filter);
project_order_filter->connect("filter_changed", this, "_on_order_option_changed");
project_order_filter->set_custom_minimum_size(Size2(180, 10) * EDSCALE);
const int projects_sorting_order = (int)EditorSettings::get_singleton()->get("project_manager/sorting_order");
project_order_filter->set_filter_option((ProjectListFilter::FilterOption)projects_sorting_order);