소스 검색

Merge pull request #9627 from Noshyaar/dialog

AcceptDialog: fix child w/ ANCHOR_END sized wrong until resized
Rémi Verschelde 8 년 전
부모
커밋
0ee47fefbe
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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) {
 
 		cancel_pressed();
+	} else if (p_what == NOTIFICATION_READY) {
+
+		_update_child_rects();
 	} else if (p_what == NOTIFICATION_RESIZED) {
 
 		_update_child_rects();