summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorRyan Roden-Corrent <ryan@rcorre.net>2023-03-19 12:26:22 -0400
committerRyan Roden-Corrent <ryan@rcorre.net>2023-03-27 07:08:29 -0400
commit894ce41180463a68e51ca2b7787d3e3f2c8a8df8 (patch)
tree2f43ea17b59214650ded30c4fda9ee3d7e9437ed /editor/project_settings_editor.cpp
parent92bee43adba8d2401ef40e2480e53087bcb1eaf1 (diff)
downloadredot-engine-894ce41180463a68e51ca2b7787d3e3f2c8a8df8.tar.gz
Apply clamp_to_embedder on parent resize and popup.
Fixes #75084. The clamp_to_embedder setting was added in 8be16e0704873f0c9bab8c10dafe2607a00ff78f, but was not set on any of the in-editor dialogs. This patch sets `clamp_to_embedder` on editor dialogs so they cannot be dragged out of the frame. This also modifies `clamp_to_embedder` so a window is clamped to the bounds of an embedder when it pops up and when the parent is resized.
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index 374ce98d63..b5900dd7bf 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -582,6 +582,7 @@ void ProjectSettingsEditor::_bind_methods() {
ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
singleton = this;
set_title(TTR("Project Settings (project.godot)"));
+ set_clamp_to_embedder(true);
ps = ProjectSettings::get_singleton();
data = p_data;