summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-25 14:38:33 +0100
committerGitHub <noreply@github.com>2019-11-25 14:38:33 +0100
commit5ddce7a9df62a8c3bcd928a8dff703e4831fdc22 (patch)
treebd09eb6324119cee48221bcb7bfdafa4add3ad21
parent934f6f2529132cc109d113c036a75cb4b025c962 (diff)
parent5f451e0fb27392cca4b1e33d4a43a50b94d88115 (diff)
Merge pull request #33869 from jbuck3/dialog-resize-bug
Fix WindowDialog moving when resized from the left/top edge
-rw-r--r--scene/gui/dialogs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp
index a1b584bad6..b6e647d1af 100644
--- a/scene/gui/dialogs.cpp
+++ b/scene/gui/dialogs.cpp
@@ -161,7 +161,7 @@ void WindowDialog::_gui_input(const Ref<InputEvent> &p_event) {
global_pos.y = MAX(global_pos.y, 0); // Ensure title bar stays visible.
Rect2 rect = get_rect();
- Size2 min_size = get_minimum_size();
+ Size2 min_size = get_combined_minimum_size();
if (drag_type == DRAG_MOVE) {
rect.position = global_pos - drag_offset;