-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 font size rounding in the settings UI #14040
Conversation
// issues when displaying 32-bit floats, because WinUI is unaware about their existence. | ||
SignificantDigitsNumberRounder rounder; | ||
rounder.SignificantDigits(6); | ||
_fontSizeBox().NumberFormatter().as<DecimalFormatter>().NumberRounder(rounder); |
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.
yikes. This is an implementation detail, but i no longer care :D
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.
can you //BODGY
this?
// issues when displaying 32-bit floats, because WinUI is unaware about their existence. | ||
SignificantDigitsNumberRounder rounder; | ||
rounder.SignificantDigits(6); | ||
_fontSizeBox().NumberFormatter().as<DecimalFormatter>().NumberRounder(rounder); |
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.
can you //BODGY
this?
This fixes an issue with c51bb3a, where some fractional font sizes are displayed as something like 13.600000000001. Closes #14024 ## Validation Steps Performed * Enter a font size of 13.6 and save * NumberBox displays "13.6" ✅ (cherry picked from commit f79276b) Service-Card-Id: 85740785 Service-Version: 1.16
🎉 Handy links: |
This fixes an issue with c51bb3a, where some fractional font
sizes are displayed as something like 13.600000000001.
Closes #14024
Validation Steps Performed