http://bugs.winehq.org/show_bug.cgi?id=59602 Bug ID: 59602 Summary: Nested `UserControl` is not properly rescaled on font change Product: Framework Mono Version: 6.12.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: System.Windows.Forms Assignee: wine-bugs@list.winehq.org Reporter: matthias.klaey@gmx.ch CC: madewokherd@gmail.com Distribution: --- Created attachment 80671 --> http://bugs.winehq.org/attachment.cgi?id=80671 Screenshots + Logs [Windows 11 Textscale 125% = all fine], [Mono Debian WSL = user control not properly scaled], Simplified situation: TestForm
TestButton TestControl > SubControl > SubButton
(see attached screenshots for complete sitation) When applying a new font to the form, e.g. `Font = SystemFonts.IconTitleFont`, form and controls are expected to get rescaled, as the form is set to `AutoScaleMode.Font`. Rescaling does happen, and works fine for e.g the `TestButton` (button_Form_SizeChanged to {Width=390, Height=32}), as well as for `TestButton` (TestControl_SizeChanged to {Width=390, Height=32}), but `SubControl` does not get scaled in respect to Size! It only gets scaled in respect to Location! The attached .zip contains screenshots demonstrating the issue: - Windows 11 .NET Framework 4.8 text scaled to 125% => all fine. - Debian 12 with Mono 6.12.0 => user control not properly scaled. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.