Merge pull request #28451 from Calinou/limit-size-manage-feature-profiles

Limit the size of the Manage Editor Feature Profiles dialog
This commit is contained in:
Rémi Verschelde 2019-04-29 17:25:54 +02:00 committed by GitHub
commit 8b757e0fee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2451,7 +2451,13 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
} break;
case SETTINGS_MANAGE_FEATURE_PROFILES: {
feature_profile_manager->popup_centered_ratio();
Size2 popup_size = Size2(900, 800) * editor_get_scale();
Size2 window_size = get_viewport()->get_size();
popup_size.x = MIN(window_size.x * 0.8, popup_size.x);
popup_size.y = MIN(window_size.y * 0.8, popup_size.y);
feature_profile_manager->popup_centered(popup_size);
} break;
case SETTINGS_TOGGLE_FULLSCREEN: {