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

Fixed popup not calculating size correctly before adjusting its rect. #45201

Merged
merged 1 commit into from
Feb 28, 2021

Conversation

EricEzaM
Copy link
Contributor

Does not regress the fix from #44906
Fixes #45199 (see my comment in this issue for further details)

MenuButton popups still full width:
image

Popups correctly fit into window:
image

@KoBeWi
Copy link
Member

KoBeWi commented Jan 15, 2021

Actually the correct behavior of popups should be that if they don't fit their rect on screen, they shift their origin so that their bottom-left corner is placed at cursor (compared to just moving the popup up by the excessive height right now). Would that be "easy enough" to implement?
kXgb9VOv0a

@EricEzaM
Copy link
Contributor Author

You are quite right... I can look into it.

@EricEzaM
Copy link
Contributor Author

EricEzaM commented Jan 16, 2021

I think this can be merged for now, as the above request should be another PR.

This fix would be needed for that implementation anyway I think.

@akien-mga akien-mga requested a review from a team January 30, 2021 22:27
@akien-mga akien-mga merged commit a6ec652 into godotengine:master Feb 28, 2021
@akien-mga
Copy link
Member

Thanks!

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.

Popups don't fit into screen
4 participants