summaryrefslogtreecommitdiffstats
path: root/editor/project_manager.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-17 21:56:59 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-17 21:56:59 +0200
commitc0eee235c4dfd7d0af90301151709d4e22668fbd (patch)
tree6ba589531ebccf5a3b45a9fde9f5000dc69b6f7b /editor/project_manager.cpp
parent86371b7298e32356c8ce892f768c56bec7088292 (diff)
downloadredot-engine-c0eee235c4dfd7d0af90301151709d4e22668fbd.tar.gz
Define a minimum window size in the editor and project manager
This prevents most UI elements from overlapping or being cut off as a result of the window being too small. This closes #20669.
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r--editor/project_manager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 0f3c4c924a..2b62482550 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -2270,6 +2270,9 @@ ProjectManager::ProjectManager() {
} break;
}
+ // Define a minimum window size to prevent UI elements from overlapping or being cut off
+ OS::get_singleton()->set_min_window_size(Size2(750, 420) * EDSCALE);
+
#ifndef OSX_ENABLED
// The macOS platform implementation uses its own hiDPI window resizing code
// TODO: Resize windows on hiDPI displays on Windows and Linux and remove the line below