Limit the size of the Manage Editor Feature Profiles dialog
This makes it more readable on large monitors.
This commit is contained in:
parent
260530f01c
commit
f5940e2909
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue