You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Adjust default editor popup sizes
This commit is contained in:
@@ -101,7 +101,14 @@ void EditorSettingsDialog::popup_edit_settings() {
|
||||
if (EditorSettings::get_singleton()->has_setting("interface/dialogs/editor_settings_bounds")) {
|
||||
popup(EditorSettings::get_singleton()->get("interface/dialogs/editor_settings_bounds"));
|
||||
} else {
|
||||
popup_centered_ratio(0.7);
|
||||
|
||||
Size2 popup_size = Size2(900, 700) * editor_get_scale();
|
||||
Size2 window_size = get_viewport_rect().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);
|
||||
|
||||
popup_centered(popup_size);
|
||||
}
|
||||
|
||||
_focus_current_search_box();
|
||||
|
||||
Reference in New Issue
Block a user