-
Notifications
You must be signed in to change notification settings - Fork 992
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
Remove duplicate DpiHelper implementation #2131
Conversation
ad9ee99
to
059ee5b
Compare
Codecov Report
@@ Coverage Diff @@
## master #2131 +/- ##
===================================================
- Coverage 29.12306% 29.08728% -0.03578%
===================================================
Files 940 939 -1
Lines 266665 266577 -88
Branches 37946 37937 -9
===================================================
- Hits 77661 77540 -121
- Misses 183787 183818 +31
- Partials 5217 5219 +2
|
This could have some significant impact if not done perfectly to the layout and behavior of controls. Please do some UI validations and ensure that things appear OK on secondary monitors, and that there's no behavior changes when dragging a form with many controls from one monitor to the next. That isn't working great, but we don't want to to regress further. |
@dreddy-work should definitely look at this |
059ee5b
to
9ad84d3
Compare
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.
LGTM
9ad84d3
to
7000515
Compare
I'm not really able to do this at the moment as I only have a mac and a windows VM. Any suggestions for secondary monitor testing? I wouldn't expect any regressions as this is simply cleaning up interop then removing a duplicate file. That said, I am willing to be proved wrong :D |
7000515
to
89bbb45
Compare
Perhaps remove CommonUnsafeNativeMethodsTests.cs or move/enable the commented tests with this PR? |
Yeah. smart |
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.
Thanks! The existing interop methods weren't using the right data type for DPI_AWARENESS_CONTEXT. I swear I wrote this up at some point, but it might have been in the internal temporary Git repository when this project was just starting. Ugh. :)
67f530c
to
4c2e824
Compare
src/System.Windows.Forms.Design.Editors/src/System/ComponentModel/Design/CollectionEditor.cs
Outdated
Show resolved
Hide resolved
4c2e824
to
5afe0b2
Compare
5afe0b2
to
6f7ea04
Compare
@JeremyKuhne it is all yours :) @dreddy-work it would be great if you had a look too. |
Change functionally look good to me. |
Closes #2120
Proposed Changes
System.Windows.Forms.Design.Editors.csproj
ScaleButtonImageLogicalToDevice
in the common fileMicrosoft Reviewers: Open in CodeFlow