summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-13 11:51:46 +0200
committerGitHub <noreply@github.com>2017-07-13 11:51:46 +0200
commit0ee47fefbe4f746d6e00e863e4523398365b4e47 (patch)
treec3fbe6aed04490c0c02392f8710887452ea82cfd /scene/gui
parent651600a34f92fb3fd5c1e8d7c3e3a760a37f4440 (diff)
parentb5b4abb56d2e40992deb7b798c578ac63f7a34d3 (diff)
Merge pull request #9627 from Noshyaar/dialog
AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized
Diffstat (limited to 'scene/gui')
-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();