diff options
| author | homer666 | 2018-05-04 18:44:29 +1000 |
|---|---|---|
| committer | homer666 | 2018-05-05 12:09:56 +1000 |
| commit | 7ff3b52dea5b19c3bee28f261d6b521afb717f3c (patch) | |
| tree | d4370397e66c3b2bdd6b6e6fac3d4e0fd0943a68 /editor/project_settings_editor.cpp | |
| parent | 75ff86f8f5cf2364af9f12455fac2fd01bb48849 (diff) | |
| download | godot-7ff3b52dea5b19c3bee28f261d6b521afb717f3c.tar.gz godot-7ff3b52dea5b19c3bee28f261d6b521afb717f3c.tar.zst godot-7ff3b52dea5b19c3bee28f261d6b521afb717f3c.zip | |
Diffstat (limited to 'editor/project_settings_editor.cpp')
| -rw-r--r-- | editor/project_settings_editor.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 05c3d7529..bb78d244a 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -768,7 +768,14 @@ void ProjectSettingsEditor::popup_project_settings() { if (EditorSettings::get_singleton()->has_setting("interface/dialogs/project_settings_bounds")) { popup(EditorSettings::get_singleton()->get("interface/dialogs/project_settings_bounds")); } else { - popup_centered_ratio(); + + 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); } globals_editor->update_category_list(); _update_translations(); |
