Right aligned elements font scaling problem
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 85
Description
* .NET Core Version: all up to latest tested 5.0.6
* Have you experienced this same bug with .NET Framework?: No (not applicable).
**Problem description:**
Right aligned elements on the form can change their relative position after font scaling.
For example, when you design a form in designer you often right align labels before input fields:

But after you ran this app in .Net, you will see this:

Right align is broken due to Font scaling (default font change in net core).
Most interesting things, same app above:


And Right align is ok. ~~I really don't know how this happens :) It seems that's it bugs only with 100% dpi and 100% text size. But this statement must be double checked...~~ Seems it's all depends on the final font size.
Because we are using old designer here it's seems that this is only migration issue. But this is not true, due to new designer is not ready for production use, and we are still force to use old one with .Net :(
**Expected behavior:**
Right align is not broken.
**Minimal repro:**
[RightAlign.zip](https://github.com/dotnet/winforms/files/6636505/RightAlign.zip)
Contributor guide
Assessment
This issue has not been assessed yet.