diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-07-13 11:51:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 11:51:46 +0200 |
commit | 0ee47fefbe4f746d6e00e863e4523398365b4e47 (patch) | |
tree | c3fbe6aed04490c0c02392f8710887452ea82cfd /scene | |
parent | 651600a34f92fb3fd5c1e8d7c3e3a760a37f4440 (diff) | |
parent | b5b4abb56d2e40992deb7b798c578ac63f7a34d3 (diff) |
Merge pull request #9627 from Noshyaar/dialog
AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/dialogs.cpp | 3 |
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(); |