-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes popup_centered_* methods, dialogs with wrong sizes and visual script editor #19334
Conversation
0c2dacd
to
4210044
Compare
@@ -452,10 +453,8 @@ void Control::_notification(int p_notification) { | |||
|
|||
} break; | |||
case NOTIFICATION_POST_ENTER_TREE: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reduz Can I remove NOTIFICATION_POST_ENTER_TREE
? this is used only here so I don't know why do you create this. I can move this two lines above to NOTIFICATION_ENTER_TREE
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because computing size with out of tree controls should never happen, and children nodes receive that notification after the parent, so for cases like this it's needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, makes sense, thanks for explain. 👍
4210044
to
bdf4506
Compare
I discovered how to fix the last issue about "licence thirdparty". |
bdf4506
to
7a38827
Compare
Fix #16069, Fix #19292, Fix #19267, Fix #18940.
except for the licence thirdparty(Fixed now, the problem was caused by label autowrap with zero width. fix here);popup_centered
incorrectly positioned the first time.This pr also fix batch rename dialog with wrong size in the first time it appears.
Edit:
Fix this #19188 (comment) too.
Edit2:
Fix #19441.