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 preview window size in visual shader editor #72954

Closed
wants to merge 1 commit into from

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Feb 9, 2023

Fix #72949

@Chaosus Chaosus requested a review from a team as a code owner February 9, 2023 09:47
@Chaosus Chaosus added this to the 4.0 milestone Feb 9, 2023
Comment on lines 4932 to +4933
preview_window->popup_centered();
preview_window->set_size(Size2(400 * EDSCALE, 600 * EDSCALE));
Copy link
Member

Choose a reason for hiding this comment

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

That's weird that this would be the fix. Sounds like there's a deeper issue if it's not working to set the size before showing the window.

Isn't this a recent regression? Might be worth finding what's the culprit before working it around.
CC @Sauermann maybe

Copy link
Contributor

Choose a reason for hiding this comment

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

popup_centered was changed recently in #62179

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe, that this change will center the top-left corner of the window, but not the window itself.

@akien-mga
Copy link
Member

Superseded by #72991.

@akien-mga akien-mga closed this Feb 9, 2023
@Chaosus Chaosus deleted the vs_fix_preview_size branch February 10, 2023 06:13
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.

[4.0-rc1] Visual Shader "Show Generated Code" button broken
3 participants