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

Fix "Attach Node Script" dialog being off-center on first popup #28555

Closed
wants to merge 1 commit into from
Closed

Fix "Attach Node Script" dialog being off-center on first popup #28555

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 1, 2019

I noticed that creating a script from within the Script editor (File > New Script...) would have its popup be centered correctly, so I looked at its code and saw that its call to popup_centered gave it size information:

script_create_dialog->popup_centered(Size2(300, 300) * EDSCALE);

I just did the same for the Scene dock's popup call.

Fixes #14659

@ghost ghost changed the title Fix "Attach Node Script" dialog being off-center Fix "Attach Node Script" dialog being off-center on first popup May 1, 2019
@akien-mga akien-mga added this to the 3.2 milestone May 1, 2019
@akien-mga
Copy link
Member

Here's another PR that aims to fix this issue for all controls: #24907.

@ghost
Copy link
Author

ghost commented May 1, 2019

Yeah, can confirm that it fixes this problem at least.

@akien-mga
Copy link
Member

Closing as superseded by #24907 which addresses the root of the problem.

@akien-mga akien-mga closed this Jun 20, 2019
@ghost ghost deleted the center-attach-script-dialog-position branch June 20, 2019 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Attach Node Script" dialog box spawns slightly off-center
2 participants