summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2017-07-13 15:57:24 +0700
committerPoommetee Ketson <poommetee@protonmail.com>2017-07-13 15:57:24 +0700
commitb5b4abb56d2e40992deb7b798c578ac63f7a34d3 (patch)
tree3695d676afddfe505755262cf609444a071a832a /scene
parentf55fff35286eb970f5db0c0cbfd2e96eb3aff8bc (diff)
AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized
Diffstat (limited to 'scene')
-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 60d1350405..d5e852f840 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();