aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/dialogs.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson2017-07-13 15:57:24 +0700
committerPoommetee Ketson2017-07-13 15:57:24 +0700
commitb5b4abb56d2e40992deb7b798c578ac63f7a34d3 (patch)
tree3695d676afddfe505755262cf609444a071a832a /scene/gui/dialogs.cpp
parentf55fff35286eb970f5db0c0cbfd2e96eb3aff8bc (diff)
downloadgodot-b5b4abb56d2e40992deb7b798c578ac63f7a34d3.tar.gz
godot-b5b4abb56d2e40992deb7b798c578ac63f7a34d3.tar.zst
godot-b5b4abb56d2e40992deb7b798c578ac63f7a34d3.zip
AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized
Diffstat (limited to 'scene/gui/dialogs.cpp')
-rw-r--r--scene/gui/dialogs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp
index 60d135040..d5e852f84 100644
--- a/scene/gui/dialogs.cpp
+++ b/scene/gui/dialogs.cpp
@@ -357,6 +357,9 @@ void AcceptDialog::_notification(int p_what) {
if (p_what == NOTIFICATION_MODAL_CLOSE) {
cancel_pressed();
+ } else if (p_what == NOTIFICATION_READY) {
+
+ _update_child_rects();
} else if (p_what == NOTIFICATION_RESIZED) {
_update_child_rects();