-
-
Notifications
You must be signed in to change notification settings - Fork 888
Ensure min dimension of 1px following rounding. #1198
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1198 +/- ##
=======================================
Coverage 82.58% 82.58%
=======================================
Files 694 694
Lines 30046 30047 +1
Branches 3397 3397
=======================================
+ Hits 24813 24814 +1
Misses 4535 4535
Partials 698 698
Continue to review full report at Codecov.
|
|
|
||
| private static void ThrowInvalid(string message) => throw new InvalidOperationException(message); | ||
|
|
||
| private static int Sanitize(int input) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicking but this could be an arrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm usually not precious, updated now though
Prerequisites
Description
When calculating a target size/rectangle during resizing ensure that rounding doesn't leave a width/height of zero. Fixes #1195