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

Avoid rounding errors in size calculation. #97

Closed
wants to merge 1 commit into from
Closed

Avoid rounding errors in size calculation. #97

wants to merge 1 commit into from

Conversation

5E-324
Copy link

@5E-324 5E-324 commented Nov 25, 2022

Width and height are normally fractional when DPI scaling is enabled, converting them to int will introduce rounding errors, and sometimes produces white lines on the right and bottom of the control.
To avoid this, they are now stored as double, the same as in UIElement.RenderSize.

@5E-324 5E-324 changed the title Change type of Width and Height to double. Avoid rounding errors in size calculation. Nov 25, 2022
@5E-324 5E-324 closed this by deleting the head repository Mar 3, 2023
@NogginBops
Copy link
Member

@5E-324 I'm guessing it wasn't intentional to close the repo by deleting the repo?
Going to reopen this, we want to fix DPI for this control soon.

@NogginBops
Copy link
Member

Closing if favor of #86

@NogginBops NogginBops closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants