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 Screen-Transform missing in Button Size in OptionButton::show_popup #69185

Merged

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Nov 25, 2022

The button size is affected by the screen transform, which was previously not taken into consideration.

This resulted in the following situation for an OptionButton within a SubViewportContainer.
When the SubViewportContainer had a non-identity-transform (like a scale of 2 in the picture), the PopupMenu was positioned without including the scale for its position:
image

fix part of #69171 (PopupMenu appears at wrong position)
follow up to #68573

Updated 2023-02-06: Rebase to master in order to include dependencies

The button size is affected by the screen transform, which was previously
not taken into consideration.
@Sauermann Sauermann force-pushed the fix-optionpopup-screentransform branch from dc091ba to 084a4ad Compare February 6, 2023 19:59
@Sauermann
Copy link
Contributor Author

How should I handle the bugsquad edit in the OP?
I know that this PR solves the linked bugreport only partially (I haven't found a solution for the scaling issue yet), but merging this PR will close that issue because of the bugsquad edit.

@KoBeWi
Copy link
Member

KoBeWi commented Feb 6, 2023

Feel free to edit the message if you know the issue will not be fully fixed.

@Sauermann
Copy link
Contributor Author

Thanks for the info, have removed the link. I just wanted to make sure, that there are no reasons for the edit, that I am not aware of.

@akien-mga akien-mga merged commit e0619a6 into godotengine:master Feb 6, 2023
@akien-mga
Copy link
Member

Thanks!

@Sauermann Sauermann deleted the fix-optionpopup-screentransform branch February 6, 2023 21:57
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 participants