Browse Source

AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized

Poommetee Ketson 8 years ago
parent
commit
b5b4abb56d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scene/gui/dialogs.cpp

+ 3 - 0
scene/gui/dialogs.cpp

@@ -357,6 +357,9 @@ void AcceptDialog::_notification(int p_what) {
 	if (p_what == NOTIFICATION_MODAL_CLOSE) {
 	if (p_what == NOTIFICATION_MODAL_CLOSE) {
 
 
 		cancel_pressed();
 		cancel_pressed();
+	} else if (p_what == NOTIFICATION_READY) {
+
+		_update_child_rects();
 	} else if (p_what == NOTIFICATION_RESIZED) {
 	} else if (p_what == NOTIFICATION_RESIZED) {
 
 
 		_update_child_rects();
 		_update_child_rects();