Skip to content
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

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

Open
Camel-RD opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
🪲 bug Product bug (most likely)
Milestone

Comments

@Camel-RD
Copy link

.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

@Camel-RD Camel-RD added the untriaged The team needs to look at this issue in the next triage label Nov 14, 2024
@elachlan elachlan added the area-Anchor/Scaling HDPI issues around anchoring and docking label Nov 14, 2024
@Zheng-Li01
Copy link
Member

The issue can reproduce from .NET 6.0 to latest .NET 10.0, cannot reproduce on .NET Framework application as below screenshot.

Core: Only reproduce when setting the WindowState property value as Maximized, cannot reproduce when setting the WindowState property value as Normal /Minimized
Image

Framework:
Image

@merriemcgaw
Copy link
Member

This is potentially a symptom of a wider issue with ambient properties being changed later while an app is running and the descendent properties had already been set. Further investigation is needed. This has been a long-standing issue, and we may need to further investigate.

@merriemcgaw merriemcgaw added 🪲 bug Product bug (most likely) and removed area-Anchor/Scaling HDPI issues around anchoring and docking untriaged The team needs to look at this issue in the next triage labels Nov 19, 2024
@merriemcgaw merriemcgaw added this to the .NET 10.0 milestone Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Product bug (most likely)
Projects
None yet
Development

No branches or pull requests

5 participants