microsoft / microsoft/calculator
Misaligned pixels when scaled at multiples of 25% or 50%, but not 100%
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 31.1k
- Forks
- 5.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
At certain scaling values, there's misalignment between 8 and 9 on the digit grid.
Steps To Reproduce
Steps to reproduce the behavior:
- Set system scaling to any value other than a multiple of 100.
- Open calculator
- Observed misaligned pixels
Expected behavior
Grid should be properly aligned at all display scales.
Screenshots
Issue is demonstrated here: https://www.youtube.com/shorts/IHhpu_bfYZk
Testing on my own machine:
At 100% scaling:
At 125% scaling:
Device and Application Information
- OS Build: 10.0.22631.0
- Architecture: X64
- Application Version: 11.2403.6.0
- Region: en-US
- Dev Version Installed: False
Additional context
A good place to start when fixing this is to investigate and confirm whether it's caused by the Multiples of Four design/layout rule being broken, which is a common cause for this in other apps.
Requested Assignment
I'm just reporting this problem.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in Calculator at 125% and other non-100% system scaling values, comparing the digit grid with 100% scaling. Investigate the Calculator display and layout rendering for the reported misalignment between 8 and 9, including whether the Multiples of Four rule is involved; done means the grid is aligned at all tested display scales.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100