Fix top-level window size for non-linear dimensions based on AutoScaleMode - #7973
Conversation
|
Tests pass locally. Need to investigate. |
I don't understand what that means. Do you have a screenshot or a GIF which could illustrate that? |
KlausLoeffelmann
left a comment
There was a problem hiding this comment.
Have a question and a few typo nits.
Gif may not justify but let me try describing this: When you move Form from 100% monitor to 200% monitor, factor become 2 for both |
Address feedback Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com> Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
|
Thank you. |
In PermonV2 mode applications, We have been using linear sizes for top-level windows that are provided by the Windows irrespective of the AutoScaleMode. This has been problematic for AutoScaleMode.Font, where Form scaling should be non-linear given its child controls are scaled non-linearly and depend on the Font that was assigned to Form/child controls.
We are making changes to utilize GetDpiScaledSize message and let Windows know that Form may need non-linear sizes depending on AutoScaleMode.
fixes #8089
Microsoft Reviewers: Open in CodeFlow