Skip to content

Commit 532eba6

Browse files
authored
Merge pull request #272 from pstranak-sw/feature/hiDpiSupport
Fix DPI scaling in Release builds
2 parents 0728b8e + 245611e commit 532eba6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Src/SwqlStudio/Utils/DpiHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ internal static class DpiHelper
3131
/// <para>This should be called in the <paramref name="control"/>'s constructor.</para></remarks>
3232
public static void FixFont(Control control)
3333
{
34+
control.SuspendLayout();
3435
control.Font = DefaultFont;
36+
control.ResumeLayout();
3537
}
3638

3739
/// <summary>

0 commit comments

Comments
 (0)