Skip to content
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

Merged
merged 1 commit into from
Jun 8, 2018

Conversation

guilhermefelipecgs
Copy link
Contributor

@guilhermefelipecgs guilhermefelipecgs commented Jun 2, 2018

Fix #16069, Fix #19292, Fix #19267, Fix #18940.

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.

@guilhermefelipecgs guilhermefelipecgs changed the title Fixes about popup_centered_* methods and dialogs with wrong sizes Fixes popup_centered_* methods, dialogs with wrong sizes and visual script editor Jun 2, 2018
@@ -452,10 +453,8 @@ void Control::_notification(int p_notification) {

} break;
case NOTIFICATION_POST_ENTER_TREE: {
Copy link
Contributor Author

@guilhermefelipecgs guilhermefelipecgs Jun 2, 2018

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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.

Copy link
Contributor Author

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. 👍

@guilhermefelipecgs
Copy link
Contributor Author

guilhermefelipecgs commented Jun 5, 2018

I discovered how to fix the last issue about "licence thirdparty".
Details in the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants