dotnet / dotnet/winforms

Anchors Right / Bottom are ignored when changing font size in a maximized form

Open
#12,481 2 comments 0 reactions 2 assignees Claimed by @Epica3055 View on GitHub
:beetle: bug Font
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

8

### Did it work in .NET Framework?

No

### Did it work in any of the earlier releases of .NET Core or .NET 5+?

no

### Issue description

When font size is changed in a maximized form, controls with anchors Right / Bottom are scaled based on the new font size ignoring anchors.

### Steps to reproduce

[TestAnchorOnMaximizedForm.zip](https://github.com/user-attachments/files/17747464/TestAnchorOnMaximizedForm.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.