Skip to content

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