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 position of centered performance overlay #10893

Merged
merged 1 commit into from Sep 19, 2021
Merged

Conversation

Megamouse
Copy link
Contributor

Currently the horizontal position of the performance graphs is smegged when the main overlay detail level is set to none.
Since the main body has no width in this case, the offset wasn't properly calculated.
This is fixed by using the max width of the main body and the graphs instead.
I used the occasion and moved the code segments to where they're actually needed.

@Megamouse Megamouse changed the title Fix horizontal position of centered performance overlay Fix position of centered performance overlay Sep 19, 2021
@Megamouse
Copy link
Contributor Author

Added a fix for a similar (minor) issue for vertical positioning.
The padding between the main overlay and the graphs was always added, even if there was only one element.

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.

None yet

1 participant