From b5b4abb56d2e40992deb7b798c578ac63f7a34d3 Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Thu, 13 Jul 2017 15:57:24 +0700 Subject: AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized --- scene/gui/dialogs.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/gui') 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(); -- cgit v1.2.3