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
Correct padding increase #8819
Correct padding increase #8819
Conversation
gitextensions#8557 introduced new margins and borders, however those margins and borders are not correctly calculated in scaled environments, i.e. scale factor >100%. gitextensions#8732 is probably a more "correct" fix, however this is a smaller more targeted fix. Resolves gitextensions#8698 Closes gitextensions#8732
Why does it work? 😄 |
Codecov Report
@@ Coverage Diff @@
## master #8819 +/- ##
==========================================
+ Coverage 56.10% 56.13% +0.03%
==========================================
Files 919 919
Lines 65524 65529 +5
Branches 11997 11997
==========================================
+ Hits 36759 36784 +25
+ Misses 25770 25754 -16
+ Partials 2995 2991 -4
Flags with carried forward coverage won't be shown. Click here to find out more. |
As described in #8698 (comment) something in the layout engine triggers multiple padding scaling:
In this change I force the padding to 1 after all the layout is done, thus making it expected. |
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.
+1
I would prefer #8732 but can live with this fix
I'd like to reduce amount of changes until after we migrate to .NET 5. I expect some thing may actually change, and some things may require an update. |
We can revisit the implementation after the migration. |
This is conceived, but I agree, we can reduce by 2 pixels to 8 pixels like in VS. |
In this case, it is necessary to delete everywhere. And use one line as separator and use color for selection. |
(This issue deals with the DPI scaling.) We have started a very similar discussion in #8711.
|
#8557 introduced new margins and borders, however those margins and borders are not correctly calculated in scaled environments, i.e. scale factor >100%.
@ivangrek in #8732 has provided probably a more "correct" fix, however this is a smaller and more targeted fix.
Resolves #8698
Closes #8732
Screenshots
Before
After
Test methodology
✒️ I contribute this code under The Developer Certificate of Origin.