diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-07 16:30:41 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-07 16:30:41 +0100 |
commit | 929333fe267f488638c76564237faff9d5d572fc (patch) | |
tree | 676f6fef50eb021edde9a4659659c78a5621d8a5 /scene/gui | |
parent | 743e26d4f93ba277e6af33c75de6b65b8c592084 (diff) | |
parent | c73844f1171861c9ff694c8253356047321e65b4 (diff) |
Merge pull request #62179 from Rindbee/fix-popup_center-off-center
Use min_size/max_size to limit window size and position while popup center
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/dialogs.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index dfe9ea3b08..760c86b2cc 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -276,10 +276,6 @@ Size2 AcceptDialog::_get_contents_minimum_size() const { // Plus there is a separation size added on top. content_minsize.y += theme_cache.buttons_separation; - // Last, we make sure that we aren't below the minimum window size. - Size2 window_minsize = get_min_size(); - content_minsize.x = MAX(window_minsize.x, content_minsize.x); - content_minsize.y = MAX(window_minsize.y, content_minsize.y); return content_minsize; } |