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

Game, set up a convention for managing half-pixels for centering elements #9467

Open
1 task done
LeHerosInconnu opened this issue Jan 19, 2025 · 0 comments
Open
1 task done
Labels
improvement New feature, request or improvement

Comments

@LeHerosInconnu
Copy link

Preliminary checks

Describe the problem requiring a solution

I suggest to set up a convention for managing half-pixels for centering elements.

Also for the "half pixel" that can't be separated when an uneven number is used, e.g. 25 pixels divided by two gives 12.5, i.e. 12 pixels on one side and 13 pixels on the other, we should set up a convention so that the non-separable pixel is always added on the right side for a horizontal dimension, i.e. in the example 12 pixels on the left and 13 pixels on the right, and is always added at the bottom for a vertical dimension, i.e. in the example, 12 pixels at the top and 13 pixels at the bottom.

Originally posted by @LeHerosInconnu in #9180 (comment)

Describe the possible solution

For horizontal and vertical centering of elements, text or graphics in a button, button in a window, window in a screen, in short any element in another element, make sure that pixels that cannot be split are added to the right for the horizontal dimension and to the bottom for the vertical dimension.

Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement
Projects
None yet
Development

No branches or pull requests

1 participant